-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (34 loc) · 898 Bytes
/
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
36
37
38
39
40
41
42
43
DEST_HOME = $(HOME)
DEST_ETC = /etc
define install
@stow --target ${1} --dir ${2} ${3}
endef
define uninstall
@stow --target ${1} --dir ${2} --delete ${3}
endef
define install_common
$(call install, $(DEST_HOME), common, home)
endef
define uninstall_common
$(call uninstall, $(DEST_HOME), common, home)
endef
setup_desktop:
@mkdir -p $(DEST_HOME)/.sage
# desktop
.PHONY: desktop
desktop: setup_desktop
$(call install_common)
$(call install, $(DEST_HOME), desktop, home)
./desktop/shortcuts/gsettings.pl --import ./desktop/shortcuts/shortcuts.csv
.PHONY: uninstall-desktop
uninstall-desktop:
$(call uninstall_common)
$(call uninstall, $(DEST_HOME), desktop, home)
./desktop/shortcuts/gsettings.pl --uninstall ./desktop/shortcuts/shortcuts.csv
# headless
.PHONY: headless
headless:
$(call install_common)
.PHONY: uninstall-headless
uninstall-headless:
$(call uninstall_common)