aboutsummaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
authorGravatar Tom Willemse2020-04-24 20:49:40 -0700
committerGravatar Tom Willemse2020-04-24 20:49:40 -0700
commitfb85e44193defa49269164ce457f4c91d92d1528 (patch)
tree4fd30327a121a698b07f8e5fefe0047de0e81c74 /GNUmakefile
parenta52da655ff39b8be4d5f994c148e31e0a8ad7878 (diff)
downloadnew-dotfiles-fb85e44193defa49269164ce457f4c91d92d1528.tar.gz
new-dotfiles-fb85e44193defa49269164ce457f4c91d92d1528.zip
Use mask to call into make
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/GNUmakefile b/GNUmakefile
index b6bec53..87c4235 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -8,13 +8,15 @@ STOW=stow
all: $(MODULES)
clean: $(addsuffix -clean,$(MODULES))
-stow: $(addsuffix -stow,$(MODULES))
zsh:
$(MAKE) -C $@
-%-stow:
- $(STOW) $(subst -stow,,$@)
+%-install: %
+ $(STOW) $^
+
+%-uninstall:
+ $(STOW) -D $(subst -uninstall,,$@)
###########
# Compton #