aboutsummaryrefslogtreecommitdiffstats
path: root/emacs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/Makefile')
-rw-r--r--emacs/Makefile5
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