diff options
author | 2020-04-24 20:49:40 -0700 | |
---|---|---|
committer | 2020-04-24 20:49:40 -0700 | |
commit | fb85e44193defa49269164ce457f4c91d92d1528 (patch) | |
tree | 4fd30327a121a698b07f8e5fefe0047de0e81c74 | |
parent | a52da655ff39b8be4d5f994c148e31e0a8ad7878 (diff) | |
download | new-dotfiles-fb85e44193defa49269164ce457f4c91d92d1528.tar.gz new-dotfiles-fb85e44193defa49269164ce457f4c91d92d1528.zip |
Use mask to call into make
-rw-r--r-- | GNUmakefile | 8 | ||||
-rw-r--r-- | maskfile.md | 4 |
2 files changed, 7 insertions, 5 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 # diff --git a/maskfile.md b/maskfile.md index dbcaea9..bb2b568 100644 --- a/maskfile.md +++ b/maskfile.md @@ -7,7 +7,7 @@ These are my configuration files. > Use GNU Stow to install a configuration. ~~~bash -stow "$project" +make ${project}-install ~~~ ## uninstall (project) @@ -15,5 +15,5 @@ stow "$project" > Use GNU Stow to uninstall a configuration. ~~~bash -stow -D "$project" +make ${project}-uninstall ~~~ |