bin/mdw-sbuild-server: Keep track of the target CPU architectures.
[profile] / Makefile
index 600defa..8c0aa48 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -72,13 +72,19 @@ ELISP                       += mdw-multiple-cursors
 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)))
@@ -256,7 +262,7 @@ endif
 
 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))