Makefile: Introduce dependencies between Emacs Lisp files.
[profile] / Makefile
index 600defa..a857bf3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -72,10 +72,13 @@ 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
+%.elc: %.el $$(foreach e, $$($$*_DEPS), $$(DEP_$$e))
        $(call v_tag,EMACS)$(EMACS) -L el/ -L $(EMACSLIB) \
                --batch --no-site-file \
                --eval '(byte-compile-file "$<")'