85 lines
3.3 KiB
Makefile
85 lines
3.3 KiB
Makefile
# Makefile for openmamba-release
|
|
# Copyright (c) 2015 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
# Released under the terms of the GNU GPLv3 license
|
|
|
|
PACKAGE=openmamba-release
|
|
|
|
distdir = $(PACKAGE)-$(VERSION)
|
|
dist_archive = $(distdir).tar.bz2
|
|
|
|
include VERSION
|
|
|
|
# System locations
|
|
prefix = /usr
|
|
exec_prefix = ${prefix}
|
|
sysconfdir = /etc
|
|
sbindir = /sbin
|
|
bindir = ${exec_prefix}/bin
|
|
mandir = ${prefix}/usr/share/man
|
|
datadir = ${prefix}/share
|
|
iconsdir = ${datadir}/icons/hicolor
|
|
initrddir = ${sysconfdir}/rc.d/init.d
|
|
sysconfigdir= ${sysconfdir}/sysconfig
|
|
localesdir = ${datadir}/locale
|
|
xdgautostartdir = ${sysconfdir}/xdg/autostart
|
|
srcdir = .
|
|
|
|
DESTDIR =
|
|
INSTALL = /usr/bin/install
|
|
INSTALL_PROGRAM = ${INSTALL} -m 755
|
|
INSTALL_DATA = ${INSTALL} -m 644
|
|
INSTALL_DIR = ${INSTALL} -d -m 755
|
|
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
|
|
|
|
all:
|
|
|
|
install-dirs:
|
|
@$(INSTALL_DIR) $(DESTDIR)$(bindir)
|
|
@$(INSTALL_DIR) $(DESTDIR)$(sysconfigdir)
|
|
@$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/smart/distro.d
|
|
@$(INSTALL_DIR) $(DESTDIR)$(datadir)/openmamba
|
|
@$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/pki/rpm-gpg
|
|
@$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/profile.d
|
|
@$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/xprofile.d
|
|
@$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/yum.repos.d
|
|
|
|
install-data:
|
|
@$(INSTALL_DATA) openmamba-smart-devel.py $(DESTDIR)$(sysconfdir)/smart/distro.d/90-openmamba-devel-repositories.py
|
|
@$(INSTALL_DATA) openmamba-smart-milestone4.py $(DESTDIR)$(sysconfdir)/smart/distro.d/10-openmamba-milestone4-repositories.py
|
|
@$(INSTALL_DATA) openmamba-smart-multi-version-select.py $(DESTDIR)$(sysconfdir)/smart/distro.d/95-multi-version-select.py
|
|
@$(INSTALL_DATA) openmamba-smart-virtual-packages-select.py $(DESTDIR)$(sysconfdir)/smart/distro.d/95-virtual-packages-select.py
|
|
@$(INSTALL_DATA) openmamba-smart-configure-once.py $(DESTDIR)$(sysconfdir)/smart/distro.d/98-configure-once.py
|
|
@$(INSTALL_DATA) yum/openmamba-rolling.repo $(DESTDIR)$(sysconfdir)/yum.repos.d/openmamba-rolling.repo
|
|
@$(INSTALL_DATA) yum/openmamba-rolling-i586.repo $(DESTDIR)$(sysconfdir)/yum.repos.d/openmamba-rolling-i586.repo
|
|
@$(INSTALL_DATA) yum/openmamba-rolling-unstable.repo $(DESTDIR)$(sysconfdir)/yum.repos.d/openmamba-rolling-unstable.repo
|
|
@$(INSTALL_DATA) openmamba-groups.db $(DESTDIR)$(datadir)/openmamba/pkggroups.db
|
|
@$(INSTALL_DATA) RPM-GPG-KEY-Mambasoft $(DESTDIR)$(sysconfdir)/pki/rpm-gpg/RPM-GPG-KEY-Mambasoft
|
|
|
|
install-programs:
|
|
@$(INSTALL_PROGRAM) openmamba-release.sh $(DESTDIR)$(bindir)/openmamba-release
|
|
@$(INSTALL_PROGRAM) gpg-key-openmamba.sh $(DESTDIR)$(sysconfdir)/profile.d/gpg-key-openmamba.sh
|
|
@$(INSTALL_PROGRAM) gpg-key-openmamba.sh $(DESTDIR)$(sysconfdir)/xprofile.d/gpg-key-openmamba.sh
|
|
|
|
install-x86_64: install-dirs install-data install-programs
|
|
@$(INSTALL_DATA) openmamba-smart-multiarch-update-x86_64.py $(DESTDIR)$(sysconfdir)/smart/distro.d/93-multiarch-update-x86_64.py
|
|
|
|
install: install-dirs install-data install-programs
|
|
|
|
clean:
|
|
rm -f $(dist_archive)
|
|
|
|
dist: clean
|
|
@git clean -f
|
|
@git log > ChangeLog
|
|
@mkdir /tmp/$(distdir)
|
|
@cp -a * /tmp/$(distdir)/
|
|
@rm -f $(dist_archive);\
|
|
tar cf - -C /tmp $(distdir) | bzip2 -9 -c > $(dist_archive)
|
|
@rm -rf /tmp/$(distdir)
|
|
@echo "file \`$(dist_archive)' created"
|
|
|
|
dist-rpm: dist
|
|
@rpm_sourcedir=`rpm --eval=%{_sourcedir}`;\
|
|
mv -f $(PACKAGE)-$(VERSION).tar.bz2 $$rpm_sourcedir;\
|
|
echo "File $$rpm_sourcedir/$(PACKAGE)-$(VERSION).tar.bz2 created."
|