grub-theme-settings/Makefile

53 lines
1.6 KiB
Makefile
Raw Normal View History

2019-10-28 20:30:32 +00:00
Version=18.0
PREFIX = /usr/local
CFG = $(wildcard cfg/*.cfg)
MTHEME = \
2019-10-30 19:36:56 +00:00
$(wildcard manjaro-live/*.png) \
manjaro-live/theme.txt \
manjaro-live/*.pf2
2019-10-28 20:30:32 +00:00
2019-10-30 19:36:56 +00:00
MICONS= $(wildcard manjaro-live/icons/*.png)
2019-10-28 20:30:32 +00:00
TZ = $(wildcard tz/*)
LOCALES = $(wildcard locales/*)
install_common:
install -dm0755 $(DESTDIR)$(PREFIX)/share/grub/cfg
install -m0644 ${CFG} $(DESTDIR)$(PREFIX)/share/grub/cfg
install -dm0755 $(DESTDIR)$(PREFIX)/share/grub/tz
install -m0644 ${TZ} $(DESTDIR)$(PREFIX)/share/grub/tz
install -dm0755 $(DESTDIR)$(PREFIX)/share/grub/locales
install -m0644 ${LOCALES} $(DESTDIR)$(PREFIX)/share/grub/locales
uninstall_common:
for f in ${CFG}; do rm -f $(DESTDIR)$(PREFIX)/share/grub/cfg/$$f; done
for f in ${TZ}; do rm -f $(DESTDIR)$(PREFIX)/share/grub/tz/$$f; done
for f in ${LOCALES}; do rm -f $(DESTDIR)$(PREFIX)/share/grub/locales/$$f; done
2019-10-28 20:44:35 +00:00
install_tromjaro:
2019-10-30 19:36:56 +00:00
install -dm0755 $(DESTDIR)$(PREFIX)/share/grub/themes/manjaro-live
install -m0644 ${MTHEME} $(DESTDIR)$(PREFIX)/share/grub/themes/manjaro-live
2019-10-28 20:30:32 +00:00
2019-10-30 19:36:56 +00:00
install -dm0755 $(DESTDIR)$(PREFIX)/share/grub/themes/manjaro-live/icons
install -m0644 ${MICONS} $(DESTDIR)$(PREFIX)/share/grub/themes/manjaro-live/icons
2019-10-28 20:30:32 +00:00
2019-10-28 20:44:35 +00:00
uninstall_tromjaro:
2019-10-30 19:36:56 +00:00
for f in ${MTHEME}; do rm -f $(DESTDIR)$(PREFIX)/share/grub/theme/manjaro-live/$$f; done
for f in ${MICONS}; do rm -f $(DESTDIR)$(PREFIX)/share/grub/theme/manjaro-live/icons/$$f; done
2019-10-28 20:30:32 +00:00
install: install_common install_tromjaro
uninstall: uninstall_common uninstall_tromjaro
dist:
git archive --format=tar --prefix=grub-theme-$(Version)/ $(Version) | gzip -9 > grub-theme-$(Version).tar.gz
gpg --detach-sign --use-agent grub-theme-$(Version).tar.gz
.PHONY: install uninstall dist