aboutsummaryrefslogtreecommitdiffstats
path: root/GNUmakefile
blob: a666fe122a4bdf6947b5d78f943bdef31407f1b7 (plain)
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
include dotfiles.mk

MODULES=xmodmap emacs compton

.PHONY: all clean $(MODULES) zsh

all: $(MODULES)

clean: $(addsuffix -clean,$(MODULES))
stow: $(addsuffix -stow,$(MODULES))

zsh:
	$(MAKE) -C $@

###########
# Compton #
###########

compton: compton/.config/compton.conf

compton/.config/compton.conf: compton/.config/compton.org
	$(call tangle,conf)

compton-clean:
	rm -f compton/.config/compton.conf

compton-stow:
	stow/usr/bin/stow-home compton

#########
# Emacs #
#########

emacs:
	$(MAKE) -C emacs/.emacs.d

emacs-clean:
	$(MAKE) -C emacs/.emacs.d clean

emacs-stow:
	stow/ust/bin/stow-home emacs

###########
# Xmodmap #
###########

xmodmap: Xmodmap/.Xmodmap

Xmodmap/.Xmodmap: Xmodmap/Xmodmap.org
	$(call tangle,fundamental)

xmodmap-clean:
	rm -f Xmodmap/.Xmodmap

xmodmap-stow:
	stow/usr/bin/stow-home Xmodmap