63 lines
961 B
Makefile
63 lines
961 B
Makefile
include dotfiles.mk
|
|
|
|
MODULES=xmodmap emacs compton cower
|
|
STOW=stow/usr/bin/stow-home
|
|
|
|
.PHONY: all clean $(MODULES) zsh
|
|
|
|
all: $(MODULES)
|
|
|
|
clean: $(addsuffix -clean,$(MODULES))
|
|
stow: $(addsuffix -stow,$(MODULES))
|
|
|
|
zsh:
|
|
$(MAKE) -C $@
|
|
|
|
%-stow:
|
|
$(STOW) $(subst -stow,,$@)
|
|
|
|
###########
|
|
# 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
|
|
|
|
#########
|
|
# Emacs #
|
|
#########
|
|
|
|
emacs:
|
|
$(MAKE) -C emacs/.emacs.d
|
|
|
|
emacs-clean:
|
|
$(MAKE) -C emacs/.emacs.d clean
|
|
|
|
###########
|
|
# Xmodmap #
|
|
###########
|
|
|
|
xmodmap: Xmodmap/.Xmodmap
|
|
|
|
Xmodmap/.Xmodmap: Xmodmap/Xmodmap.org
|
|
$(call tangle,fundamental)
|
|
|
|
xmodmap-clean:
|
|
rm -f Xmodmap/.Xmodmap
|
|
|
|
#########
|
|
# Cower #
|
|
#########
|
|
|
|
cower: cower/.config/cower/config
|
|
|
|
cower/.config/cower/config: cower/.config/cower/config.org
|
|
$(call tangle,conf-unix)
|
|
|
|
cower-clean:
|
|
rm -f cower/.config/cower/config
|