Make stow target generic
This commit is contained in:
parent
58cd42d5b0
commit
d10b494fae
1 changed files with 4 additions and 12 deletions
16
GNUmakefile
16
GNUmakefile
|
@ -1,6 +1,7 @@
|
||||||
include dotfiles.mk
|
include dotfiles.mk
|
||||||
|
|
||||||
MODULES=xmodmap emacs compton cower
|
MODULES=xmodmap emacs compton cower
|
||||||
|
STOW=stow/usr/bin/stow-home
|
||||||
|
|
||||||
.PHONY: all clean $(MODULES) zsh
|
.PHONY: all clean $(MODULES) zsh
|
||||||
|
|
||||||
|
@ -12,6 +13,9 @@ stow: $(addsuffix -stow,$(MODULES))
|
||||||
zsh:
|
zsh:
|
||||||
$(MAKE) -C $@
|
$(MAKE) -C $@
|
||||||
|
|
||||||
|
%-stow:
|
||||||
|
$(STOW) $(subst -stow,,$@)
|
||||||
|
|
||||||
###########
|
###########
|
||||||
# Compton #
|
# Compton #
|
||||||
###########
|
###########
|
||||||
|
@ -24,9 +28,6 @@ compton/.config/compton.conf: compton/.config/compton.org
|
||||||
compton-clean:
|
compton-clean:
|
||||||
rm -f compton/.config/compton.conf
|
rm -f compton/.config/compton.conf
|
||||||
|
|
||||||
compton-stow:
|
|
||||||
stow/usr/bin/stow-home compton
|
|
||||||
|
|
||||||
#########
|
#########
|
||||||
# Emacs #
|
# Emacs #
|
||||||
#########
|
#########
|
||||||
|
@ -37,9 +38,6 @@ emacs:
|
||||||
emacs-clean:
|
emacs-clean:
|
||||||
$(MAKE) -C emacs/.emacs.d clean
|
$(MAKE) -C emacs/.emacs.d clean
|
||||||
|
|
||||||
emacs-stow:
|
|
||||||
stow/usr/bin/stow-home emacs
|
|
||||||
|
|
||||||
###########
|
###########
|
||||||
# Xmodmap #
|
# Xmodmap #
|
||||||
###########
|
###########
|
||||||
|
@ -52,9 +50,6 @@ Xmodmap/.Xmodmap: Xmodmap/Xmodmap.org
|
||||||
xmodmap-clean:
|
xmodmap-clean:
|
||||||
rm -f Xmodmap/.Xmodmap
|
rm -f Xmodmap/.Xmodmap
|
||||||
|
|
||||||
xmodmap-stow:
|
|
||||||
stow/usr/bin/stow-home Xmodmap
|
|
||||||
|
|
||||||
#########
|
#########
|
||||||
# Cower #
|
# Cower #
|
||||||
#########
|
#########
|
||||||
|
@ -66,6 +61,3 @@ cower/.config/cower/config: cower/.config/cower/config.org
|
||||||
|
|
||||||
cower-clean:
|
cower-clean:
|
||||||
rm -f cower/.config/cower/config
|
rm -f cower/.config/cower/config
|
||||||
|
|
||||||
cower-stow:
|
|
||||||
stow/usr/bin/stow-home cower
|
|
||||||
|
|
Loading…
Reference in a new issue