dotfiles/GNUmakefile

99 lines
1.7 KiB
Text
Raw Normal View History

2017-04-03 05:22:36 +02:00
include dotfiles.mk
2016-11-24 21:45:18 +01:00
2021-10-22 09:50:36 +02:00
MODULES=xmodmap emacs picom cower mowedline herbstluftwm
STOW=stow
2017-04-03 05:22:36 +02:00
.PHONY: all clean $(MODULES) zsh
all: $(MODULES)
clean: $(addsuffix -clean,$(MODULES))
2016-11-24 21:45:18 +01:00
zsh:
$(MAKE) -C $@
2017-04-03 05:22:36 +02:00
before-%-install: # Dummy recipe
@true
%-stow: % before-%-install
$(STOW) $<
2020-04-25 05:49:40 +02:00
%-install: %-stow # Dummy recipe
@true
2020-04-25 05:49:40 +02:00
%-uninstall:
$(STOW) -D $(subst -uninstall,,$@)
2018-01-09 06:16:02 +01:00
# Picom
2017-06-22 09:07:28 +02:00
picom: picom/.config/picom.conf
2017-06-22 09:07:28 +02:00
picom/.config/picom.conf: picom/.config/picom.org
2017-06-22 09:07:28 +02:00
$(call tangle,conf)
picom-clean:
rm -f picom/.config/picom.conf
2017-06-22 09:07:28 +02:00
#########
# Emacs #
#########
emacs-install: emacs-stow
xdg-settings set default-url-scheme-handler org-protocol EmacsClient.desktop
2017-04-03 05:22:36 +02:00
###########
# Xmodmap #
###########
xmodmap: Xmodmap/.Xmodmap
Xmodmap/.Xmodmap: Xmodmap/Xmodmap.org
$(call tangle,fundamental)
xmodmap-clean:
rm -f Xmodmap/.Xmodmap
2018-01-09 05:48:18 +01:00
#########
# Cower #
#########
cower: cower/.config/cower/config
cower/.config/cower/config: cower/.config/cower/config.org
$(call tangle,conf-unix)
cower-clean:
rm -f cower/.config/cower/config
2018-01-09 06:21:01 +01:00
#############
# Mowedline #
#############
mowedline: mowedline/.config/mowedline/init.scm
mowedline/.config/mowedline/init.scm: SCHEME_IMPLEMENTATION = chicken
mowedline/.config/mowedline/init.scm: mowedline/.config/mowedline/init.org
$(call tangle,scheme)
mowedline-clean:
rm -f mowedline/.config/mowedline/init.scm
2018-01-09 07:33:43 +01:00
#########
# Dunst #
#########
dunst: dunst/.config/dunst/dunstrc
dunst/.config/dunst/dunstrc: dunst/.config/dunst/dunstrc.org
$(call tangle,conf-unix)
dunst-clean:
rm -f dunst/.config/dunst/dunstrc
# X11
x11-install: lib-install x11/dot-x11-0-1-any.pkg.tar.xz
x11/dot-x11-0-1-any.pkg.tar.xz: x11/PKGBUILD
cd x11 && makepkg -sicf