forked from AsahiLinux/asahi-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (27 loc) · 1.62 KB
/
Makefile
File metadata and controls
31 lines (27 loc) · 1.62 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
PREFIX=/usr/local
SCRIPTS=update-vendor-firmware update-grub first-boot
UNITS=first-boot.service update-vendor-firmware.service systemd-udev-trigger-early.service
MULTI_USER_WANTS=first-boot.service
SYSINIT_WANTS=update-vendor-firmware.service systemd-udev-trigger-early.service
install:
install -d $(DESTDIR)$(PREFIX)/bin/
install -m0755 -t $(DESTDIR)$(PREFIX)/bin/ $(SCRIPTS)
install -dD $(DESTDIR)$(PREFIX)/lib/systemd/system
install -dD $(DESTDIR)$(PREFIX)/lib/systemd/system/{multi-user,sysinit}.target.wants
install -m0644 -t $(DESTDIR)$(PREFIX)/lib/systemd/system $(addprefix systemd/,$(UNITS))
ln -sf $(addprefix $(PREFIX)/lib/systemd/system/,$(MULTI_USER_WANTS)) \
$(DESTDIR)$(PREFIX)/lib/systemd/system/multi-user.target.wants/
ln -sf $(addprefix $(PREFIX)/lib/systemd/system/,$(SYSINIT_WANTS)) \
$(DESTDIR)$(PREFIX)/lib/systemd/system/sysinit.target.wants/
install -dD $(DESTDIR)$(PREFIX)/lib/initcpio/install
install -m0644 -t $(DESTDIR)$(PREFIX)/lib/initcpio/install initcpio/install/socios
install -dD $(DESTDIR)$(PREFIX)/share/libalpm/hooks
install -m0644 -t $(DESTDIR)$(PREFIX)/share/libalpm/hooks libalpm/hooks/95-m1n1-install.hook
uninstall:
rm -f $(addprefix $(DESTDIR)$(PREFIX)/bin/,$(SCRIPTS))
rm -f $(addprefix $(DESTDIR)$(PREFIX)/lib/systemd/system/,$(UNITS))
rm -f $(addprefix $(DESTDIR)$(PREFIX)/lib/systemd/system/multi-user.target.wants/,$(MULTI_USER_WANTS))
rm -f $(addprefix $(DESTDIR)$(PREFIX)/lib/systemd/system/sysinit.target.wants/,$(SYSINIT_WANTS))
rm -f $(DESTDIR)$(PREFIX)/lib/initcpio/install/socios
rm -f $(DESTDIR)$(PREFIX)/share/libalpm/hooks/95-m1n1-install.hook
.PHONY: install uninstall