ELISP += git git-blame vc-git stgit quilt
ELISP += bracketed-paste
+ELISP += dot-emacs
+dot-emacs_DEPS = make-regexp
+
SCRIPTLINKS += emacsclient-hack movemail-hack sendmail-hack
SCRIPTLINKS += aspell-hack emerge-hack
-%.elc: %.el
- $(call v_tag,EMACS)$(EMACS) -L el/ -L $(EMACSLIB) \
+%.elc: %.el $$(foreach e, $$($$*_DEPS), $$(DEP_$$e))
+ $(call v_tag,EMACS)if ! $(EMACS) >$*.build-log 2>&1 \
+ -L el/ -L $(EMACSLIB) \
--batch --no-site-file \
- --eval '(byte-compile-file "$<")'
+ --eval '(byte-compile-file "$<")'; then \
+ cat $*.build-log; exit 2; \
+ fi
LOCAL_ELISP = $(filter $(notdir $(wildcard el/*.el)), \
$(addsuffix .el, $(ELISP)))
dotfile-source = $(HERE)/dot/$(or $($1_SRC), $(1:.%=%)$2)
-## Easist: just make symlinks.
+## Easiest: just make symlinks.
dotlink-ok-p = \
$(call symlink-ok-p,$(HOME)/$1,$(call dotfile-source,$1))
all:: $(addprefix $(HOME)/, $(DOTLINKS))