chiark / gitweb /
Makefile: Introduce dependencies between Emacs Lisp files.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 13 Aug 2017 03:31:47 +0000 (04:31 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 13 Aug 2017 03:31:47 +0000 (04:31 +0100)
Mention that `dot-emacs.el' depends on `make-regexp.el' so that we don't
try compiling things in the wrong order.

Makefile

index 600defa6cc1a5edc600d93bbda2b0ce6428f0ed0..a857bf3a6130d8c3bc564a1c2a3c532303a5d31d 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 "$<")'