Use mask to call into make
This commit is contained in:
parent
a52da655ff
commit
fb85e44193
2 changed files with 7 additions and 5 deletions
|
@ -8,13 +8,15 @@ STOW=stow
|
||||||
all: $(MODULES)
|
all: $(MODULES)
|
||||||
|
|
||||||
clean: $(addsuffix -clean,$(MODULES))
|
clean: $(addsuffix -clean,$(MODULES))
|
||||||
stow: $(addsuffix -stow,$(MODULES))
|
|
||||||
|
|
||||||
zsh:
|
zsh:
|
||||||
$(MAKE) -C $@
|
$(MAKE) -C $@
|
||||||
|
|
||||||
%-stow:
|
%-install: %
|
||||||
$(STOW) $(subst -stow,,$@)
|
$(STOW) $^
|
||||||
|
|
||||||
|
%-uninstall:
|
||||||
|
$(STOW) -D $(subst -uninstall,,$@)
|
||||||
|
|
||||||
###########
|
###########
|
||||||
# Compton #
|
# Compton #
|
||||||
|
|
|
@ -7,7 +7,7 @@ These are my configuration files.
|
||||||
> Use GNU Stow to install a configuration.
|
> Use GNU Stow to install a configuration.
|
||||||
|
|
||||||
~~~bash
|
~~~bash
|
||||||
stow "$project"
|
make ${project}-install
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
## uninstall (project)
|
## uninstall (project)
|
||||||
|
@ -15,5 +15,5 @@ stow "$project"
|
||||||
> Use GNU Stow to uninstall a configuration.
|
> Use GNU Stow to uninstall a configuration.
|
||||||
|
|
||||||
~~~bash
|
~~~bash
|
||||||
stow -D "$project"
|
make ${project}-uninstall
|
||||||
~~~
|
~~~
|
||||||
|
|
Loading…
Reference in a new issue