forked from vianney/arch-luks-suspend
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
32 lines (23 loc) · 1.02 KB
/
Makefile
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
.PHONY: all install
INSTALL_DIR := /usr/lib/debian-luks-suspend
INITRAMFS_TOOLS := /etc/initramfs-tools/hooks/
plymouth:
@sed -i 's;d/debian-luks-suspend.*;d/debian-luks-suspend -g;' systemd-suspend.service
noplymouth:
@sed -i 's;d/debian-luks-suspend.*;d/debian-luks-suspend;' systemd-suspend.service
all:
install:
install -Dm755 debian-luks-suspend "$(DESTDIR)$(INSTALL_DIR)/debian-luks-suspend"
install -Dm755 encrypt-on-suspend "$(DESTDIR)$(INSTALL_DIR)/encrypt-on-suspend"
install -Dm755 initramfs-tools-hook "$(DESTDIR)$(INITRAMFS_TOOLS)/initramfs-tools-hook"
install -Dm644 systemd-suspend.service "$(DESTDIR)/etc/systemd/system/systemd-suspend.service"
update-initramfs -u -k all
systemctl daemon-reload
uninstall:
rm -f "$(DESTDIR)$(INSTALL_DIR)/debian-luks-suspend"
rm -f "$(DESTDIR)$(INSTALL_DIR)/encrypt-on-suspend"
rm -f "$(DESTDIR)$(INITRAMFS_TOOLS)/initramfs-tools-hook"
rm -f "$(DESTDIR)/etc/systemd/system/systemd-suspend.service"
update-initramfs -u -k all
systemctl daemon-reload
# vim:set sw=4 ts=4 noet: