branch: externals/transient
commit d272c3a773a664f33cd61341194d186b1158b4b1
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    make: Duplicate %.elc target
    
    Do so to keep "default.mk" and "lisp/Makefile" in sync with the
    respective files from other packages.
---
 default.mk    | 4 ----
 lisp/Makefile | 4 ++++
 test/Makefile | 6 +++++-
 3 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/default.mk b/default.mk
index ac03ca6e1d..e5be73c90c 100644
--- a/default.mk
+++ b/default.mk
@@ -32,9 +32,5 @@ GITSTATS      ?= gitstats
 GITSTATS_DIR  ?= $(TOP)docs/stats
 GITSTATS_ARGS ?= -c style=https://magit.vc/assets/stats.css -c max_authors=999
 
-%.elc: %.el
-       @printf "Compiling $<\n"
-       @$(EMACS) -Q --batch $(EMACS_ARGS) $(LOAD_PATH) -f batch-byte-compile $<
-
 RCLONE      ?= rclone
 RCLONE_ARGS ?= -v
diff --git a/lisp/Makefile b/lisp/Makefile
index 9da347f40d..064f37d5b1 100644
--- a/lisp/Makefile
+++ b/lisp/Makefile
@@ -5,6 +5,10 @@ lisp: $(ELCS) autoloads check-declare
 
 autoloads: $(PKG)-autoloads.el
 
+%.elc: %.el
+       @printf "Compiling $<\n"
+       @$(EMACS) -Q --batch $(EMACS_ARGS) $(LOAD_PATH) -f batch-byte-compile $<
+
 check-declare:
        @printf " Checking function declarations\n"
        @$(EMACS) -Q --batch $(EMACS_ARGS) $(LOAD_PATH) \
diff --git a/test/Makefile b/test/Makefile
index 25c4cdc0e0..54767050a3 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,7 +1,7 @@
 -include ../config.mk
 include ../default.mk
 
-LOAD_PATH  += -L $(TOP)test
+LOAD_PATH += -L $(TOP)test
 
 test: lisp
        @printf "  Testing...\n"
@@ -10,6 +10,10 @@ test: lisp
 
 lisp: ../lisp/$(PKG).elc $(PKG)-test.elc
 
+%.elc: %.el
+       @printf "Compiling $<\n"
+       @$(EMACS) -Q --batch $(EMACS_ARGS) $(LOAD_PATH) -f batch-byte-compile $<
+
 clean:
        @printf " Cleaning test/*...\n"
        @rm -rf $(PKG)-test.elc

Reply via email to