aboutsummaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
authorGravatar Tom Willemse2020-05-09 23:52:46 -0700
committerGravatar Tom Willemse2020-05-09 23:52:46 -0700
commitc2f8fdb0c08467551e9033b0994d954508dd1669 (patch)
tree7bd615e065f9e7f44cbb5db747710c19d102d815 /GNUmakefile
parent8d9320be834f3f59e0ffdbf59cf7a20c341ac9b6 (diff)
downloadnew-dotfiles-c2f8fdb0c08467551e9033b0994d954508dd1669.tar.gz
new-dotfiles-c2f8fdb0c08467551e9033b0994d954508dd1669.zip
Add pre- and post-install recipes for configurations
Use the post-install recipe for Emacs to configure it to open org-protocol requests.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 6daf158..687eaf9 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -12,9 +12,15 @@ clean: $(addsuffix -clean,$(MODULES))
zsh:
$(MAKE) -C $@
-%-install: %
+before-%-install: # Dummy recipe
+ @true
+
+%-stow: % before-%-install
$(STOW) $<
+%-install: %-stow # Dummy recipe
+ @true
+
%-uninstall:
$(STOW) -D $(subst -uninstall,,$@)
@@ -32,6 +38,9 @@ picom-clean:
# Emacs #
#########
+emacs-install: emacs-stow
+ xdg-settings set default-url-scheme-handler org-protocol EmacsClient.desktop
+
###########
# Xmodmap #
###########