forked from delphix/recovery-environment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (29 loc) · 1.01 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
33
34
35
prefix = /usr
all:
mkdir bin/
./scripts/stage1.sh $(CURDIR)/bin/recovery.img
install:
install -D scripts/bootcount_reset \
$(DESTDIR)$(prefix)/bin/bootcount_reset
install -D scripts/recovery_sync \
$(DESTDIR)$(prefix)/bin/recovery_sync
install -D bin/recovery.img \
$(DESTDIR)/$(prefix)/share/recovery_environment/recovery.img
install -D scripts/42_bootcount \
$(DESTDIR)/etc/grub.d/42_bootcount
install -D scripts/42_recovery \
$(DESTDIR)/etc/grub.d/42_recovery
install -m 0644 -D scripts/delphix-bootcount.service \
$(DESTDIR)/lib/systemd/system/delphix-bootcount.service
clean:
rm -rf bin/recovery.img
rm -rf bin
distclean: clean
uninstall:
-rm -f $(DESTDIR)/$(prefix)/bin/bootcount_reset
-rm -f $(DESTDIR)/$(prefix)/bin/recovery_sync
-rm -f $(DESTDIR)/$(prefix)/share/recovery_environment/recovery.img
-rm -f $(DESTDIR)/etc/grub.d/42_bootcount
-rm -f $(DESTDIR)/etc/grub.d/42_recovery
-rm -f $(DESTDIR)/lib/systemd/system/delphix-bootcount.service
.PHONY: all install clean distclean uninstall