openmamba-color-schemes/Makefile

60 lines
1.7 KiB
Makefile

# Makefile for openmamba-color-schemes
# Copyright (c) 2022 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Released under the terms of the GNU GPLv3 license
PACKAGE=openmamba-color-schemes
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
sysconfigdir= ${sysconfdir}/sysconfig
localesdir = ${datadir}/locale
xdgautostartdir = ${sysconfdir}/xdg/autostart
colorschemesdir = ${datadir}/color-schemes
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)$(colorschemesdir)
install: install-dirs
$(INSTALL_DATA) OpenmambaGreen.colors $(DESTDIR)$(colorschemesdir)/OpenmambaGreen.colors
$(INSTALL_DATA) OpenmambaClassic.colors $(DESTDIR)$(colorschemesdir)/OpenmambaClassic.colors
$(INSTALL_DATA) OpenmambaDark.colors $(DESTDIR)$(colorschemesdir)/OpenmambaDark.colors
$(INSTALL_DATA) OpenmambaLight.colors $(DESTDIR)$(colorschemesdir)/OpenmambaLight.colors
clean:
rm -f $(dist_archive)
dist: clean
@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."