grub-theme-openmamba/Makefile

69 lines
1.5 KiB
Makefile
Raw Normal View History

2017-12-17 19:48:48 +01:00
# Makefile for gruub-theme-openmamba-circles
# Copyright (C) 2017 by Silvan Calarco <silvan.calarco@mambasoft.it>
include VERSION
PACKAGE = grub-theme-openmamba
DISTROID = openmamba
RPM_VENDOR = openmamba
RPM_DISTRIBUTION = openmamba
RPM_DISTROEXT = mamba
THEMES = circles
DEFAULT_THEME = circles
DISTROid = $(shell echo $(DISTROID) | tr A-Z a-z)
DISTROICON = $(DISTROid)
DESTDIR =
prefix = /usr
exec_prefix = ${prefix}
sysconfdir = /etc
sbindir = ${exec_prefix}/sbin
bindir = ${exec_prefix}/bin
datadir = ${prefix}/share
mandir = ${prefix}/usr/share/man
sysconfigdir= ${sysconfdir}/sysconfig
iconsdir = ${datadir}/icons/hicolor
xdg_appsdir = ${datadir}/applications
xdg_directorydir = ${datadir}/desktop-directories
xdg_menudir = ${sysconfdir}/xdg/menus
xdg_mergedmenudir = $(xdg_menudir)/applications-merged
srcdir = .
distdir = $(PACKAGE)-$(VERSION)
dist_archive = $(distdir).tar.bz2
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:
@$(INSTALL_DIR) $(DESTDIR)$(datadir)/grub/themes
@cp -a circles $(DESTDIR)$(datadir)/grub/themes
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 $(dist_archive) $$rpm_sourcedir;\
echo "and saved as \`$$rpm_sourcedir/$(dist_archive)'"
clean:
rm -f $(dist_archive)