aboutsummaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
authorGravatar Tom Willemse2017-04-02 20:22:36 -0700
committerGravatar Tom Willemse2017-04-02 20:26:21 -0700
commit05fd4916c88a8b63cdcd1ca90ca0c610eb6aeb53 (patch)
tree563a10d40403b6e638094813753bb3991e797e0a /GNUmakefile
parent0658e1b2dc5817b42781caf8417e83e5e4ed4307 (diff)
downloadnew-dotfiles-05fd4916c88a8b63cdcd1ca90ca0c610eb6aeb53.tar.gz
new-dotfiles-05fd4916c88a8b63cdcd1ca90ca0c610eb6aeb53.zip
Build Xmodmap from top-level Makefile
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile26
1 files changed, 24 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 50f836d..45fd82e 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,6 +1,28 @@
-.PHONY: all zsh
+include dotfiles.mk
-all: zsh
+MODULES=xmodmap
+
+.PHONY: all clean $(MODULES) zsh
+
+all: $(MODULES)
+
+clean: $(addsuffix -clean,$(MODULES))
+stow: $(addsuffix -stow,$(MODULES))
zsh:
$(MAKE) -C $@
+
+###########
+# 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