From 283b81fe5c2f0f6e7ab473285b859ab1d6fbe183 Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Fri, 17 Sep 2021 07:59:09 +0000 Subject: [PATCH] Update emacs config if installed --- Makefile | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 55 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 690ec6d..22f3f9e 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,13 @@ UNINSTALL_TARGETS = $(TARGETS:=-uninstall) # List of all applications with stored dotfiles -CONFIGS = aspell emacs git libinput-gestures mailcap mpd ncmpcpp rtv shells wallpaper-reddit zsh +SHELLS = bash zsh all-shells +UTILS = emacs git aspell +FUN = mpd ncmpcpp mailcap rtv +DESKTOP = libinput-gestures reddit-wallpaper-fetcher +ARCH = paru + +CONFIGS = $(SHELLS) $(UTILS) $(FUN) $(DESKTOP) $(ARCH) all: help @@ -28,6 +34,49 @@ .PHONY: $(CONFIGS:=-del) $(CONFIGS:=-del): $(STOW) --delete -t $(HOME) $(@:-del=) + +.PHONY: emacs +emacs: + git submodule update --init + $(STOW) -t $(HOME) $@ + +.PHONY: termux +termux: shells + $(STOW) -t $(HOME) $@ + +.PHONY: termux-uninstall +termux-uninstall: shells-uninstall + $(STOW) --delete -t $(HOME) $(@:-uninstall=) + +.PHONY: shells +shells: $(SHELLS) + +.PHONY: shells-uninstall +shells-uninstall: $(SHELLS:=-del) + +.PHONY: utils +utils: $(UTILS) + +.PHONY: utils-uninstall +utils-uninstall: $(UTILS:=-del) + +.PHONY: fun +fun: $(FUN) + +.PHONY: fun-uninstall +fun-uninstall: $(FUN:=-del) + +.PHONY: desktop +desktop: $(DESKTOP) + +.PHONY: desktop-uninstall +desktop-uninstall: $(DESKTOP:=-del) + +.PHONY: arch +arch: $(ARCH) + +.PHONY: arch-uninstall +arch-uninstall: $(ARCH:=-del) .PHONY: $(INSTALL_TARGETS) $(INSTALL_TARGETS): $(CONFIGS) @@ -40,3 +89,8 @@ $(ECHO) 'use make "target"' $(ECHO) 'targets:' $(ECHO) ' home(-uninstall)' + $(ECHO) ' shells(-uninstall)' + $(ECHO) ' utils(-uninstall)' + $(ECHO) ' fun(-uninstall)' + $(ECHO) ' desktop(-uninstall)' + $(ECHO) ' termux(-uninstall)' -- Gitblit v1.9.3