aboutsummaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
authorGravatar Tom Willemse2018-01-08 21:16:02 -0800
committerGravatar Tom Willemse2018-02-07 00:47:36 -0800
commitd10b494fae1210fe0ba59535d3427c42e9dc372f (patch)
tree3a9ac35a433a53e6ed140cf1d89ba8aac5954c28 /GNUmakefile
parent58cd42d5b034aedbd1ab56b1f5501bc616a11e2b (diff)
downloadnew-dotfiles-d10b494fae1210fe0ba59535d3427c42e9dc372f.tar.gz
new-dotfiles-d10b494fae1210fe0ba59535d3427c42e9dc372f.zip
Make stow target generic
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile16
1 files changed, 4 insertions, 12 deletions
diff --git a/GNUmakefile b/GNUmakefile
index a1d3e88..d349c74 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,6 +1,7 @@
include dotfiles.mk
MODULES=xmodmap emacs compton cower
+STOW=stow/usr/bin/stow-home
.PHONY: all clean $(MODULES) zsh
@@ -12,6 +13,9 @@ stow: $(addsuffix -stow,$(MODULES))
zsh:
$(MAKE) -C $@
+%-stow:
+ $(STOW) $(subst -stow,,$@)
+
###########
# Compton #
###########
@@ -24,9 +28,6 @@ compton/.config/compton.conf: compton/.config/compton.org
compton-clean:
rm -f compton/.config/compton.conf
-compton-stow:
- stow/usr/bin/stow-home compton
-
#########
# Emacs #
#########
@@ -37,9 +38,6 @@ emacs:
emacs-clean:
$(MAKE) -C emacs/.emacs.d clean
-emacs-stow:
- stow/usr/bin/stow-home emacs
-
###########
# Xmodmap #
###########
@@ -52,9 +50,6 @@ Xmodmap/.Xmodmap: Xmodmap/Xmodmap.org
xmodmap-clean:
rm -f Xmodmap/.Xmodmap
-xmodmap-stow:
- stow/usr/bin/stow-home Xmodmap
-
#########
# Cower #
#########
@@ -66,6 +61,3 @@ cower/.config/cower/config: cower/.config/cower/config.org
cower-clean:
rm -f cower/.config/cower/config
-
-cower-stow:
- stow/usr/bin/stow-home cower