diff options
author | Mattias Andrée <maandree@kth.se> | 2021-06-25 16:42:47 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-06-25 16:42:47 +0200 |
commit | fb0db5d269ff178322dc23ae6c18049f3f8b9772 (patch) | |
tree | 0d716908ea2b33adb4853491e3c5d8a3d9cb6f6b /emacs/Makefile | |
parent | m (diff) | |
download | dotfiles-fb0db5d269ff178322dc23ae6c18049f3f8b9772.tar.gz dotfiles-fb0db5d269ff178322dc23ae6c18049f3f8b9772.tar.bz2 dotfiles-fb0db5d269ff178322dc23ae6c18049f3f8b9772.tar.xz |
Let main Makefile select package manager
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'emacs/Makefile')
-rw-r--r-- | emacs/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/emacs/Makefile b/emacs/Makefile index 3f8425e..beebde0 100644 --- a/emacs/Makefile +++ b/emacs/Makefile @@ -1,4 +1,5 @@ .POSIX: +include ../common.mk install: mkdir -p -- ~/.config @@ -11,11 +12,11 @@ install: ln -sf -- .config/emacs ~/.emacs.d printf '; %s\n\n' 'This file is generated by ~/.dotfiles/emacs/Makefile' > ~/.config/emacs/init.el cat -- init.el >> ~/.config/emacs/init.el - if pacman -Qq -- emacs-go-mode </dev/null >/dev/null 2>/dev/null; then\ + if $(CHECK_INSTALLED) emacs-go-mode 2>/dev/null; then\ printf '\n' >> ~/.config/emacs/init.el && \ cat -- init-go-mode.el >> ~/.config/emacs/init.el; \ fi - if pacman -Qq -- emacs-haskell-mode </dev/null >/dev/null 2>/dev/null; then\ + if $(CHECK_INSTALLED) emacs-haskell-mode 2>/dev/null; then\ printf '\n' >> ~/.config/emacs/init.el && \ cat -- init-haskell-mode.el >> ~/.config/emacs/init.el; \ fi |