This repository was archived by the owner on Jul 27, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (39 loc) · 1.68 KB
/
Makefile
File metadata and controls
56 lines (39 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
VERSION=0.3
PKG = grub-theme
PREFIX = /usr/local
FMODE = -m0644
DMODE = -dm0755
RM = rm -f
CFG = $(wildcard cfg/*.cfg)
THEME = \
$(wildcard artix/*.png) \
artix/theme.txt \
artix/u_vga16_16.pf2
ICONS= $(wildcard artix/icons/*.png)
TZ = $(wildcard tz/*)
LOCALES = $(wildcard locales/*)
install_common:
install $(DMODE) $(DESTDIR)$(PREFIX)/share/grub/cfg
install $(FMODE) $(CFG) $(DESTDIR)$(PREFIX)/share/grub/cfg
install $(DMODE) $(DESTDIR)$(PREFIX)/share/grub/tz
install $(FMODE) $(TZ) $(DESTDIR)$(PREFIX)/share/grub/tz
install $(DMODE) $(DESTDIR)$(PREFIX)/share/grub/locales
install $(FMODE) $(LOCALES) $(DESTDIR)$(PREFIX)/share/grub/locales
uninstall_common:
for f in $(notdir $(CFG)); do $(RM) $(DESTDIR)$(PREFIX)/share/grub/cfg/$$f; done
for f in $(notdir $(TZ)); do $(RM) $(DESTDIR)$(PREFIX)/share/grub/tz/$$f; done
for f in $(notdir $(LOCALES)); do $(RM) $(DESTDIR)$(PREFIX)/share/grub/locales/$$f; done
install_theme:
install $(DMODE) $(DESTDIR)$(PREFIX)/share/grub/themes/artix
install $(FMODE) $(THEME) $(DESTDIR)$(PREFIX)/share/grub/themes/artix
install $(DMODE) $(DESTDIR)$(PREFIX)/share/grub/themes/artix/icons
install $(FMODE) $(ICONS) $(DESTDIR)$(PREFIX)/share/grub/themes/artix/icons
uninstall_theme:
for f in $(notdir $(THEME)); do $(RM) $(DESTDIR)$(PREFIX)/share/grub/theme/artix/$$f; done
for f in $(notdir $(ICONS)); do $(RM) $(DESTDIR)$(PREFIX)/share/grub/theme/artix/icons/$$f; done
install: install_common install_theme
uninstall: uninstall_common uninstall_theme
dist:
git archive --format=tar --prefix=$(PKG)-$(VERSION)/ $(VERSION) | gzip -9 > $(PKG)-$(VERSION).tar.gz
gpg --detach-sign --use-agent $(PKG)-$(VERSION).tar.gz
.PHONY: install uninstall dist