diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2025-11-30 19:44:38 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2025-11-30 19:44:38 +0100 |
| commit | d272c3a773a664f33cd61341194d186b1158b4b1 (patch) | |
| tree | 0fc787d1ae49fd123c0f83f3b7d07c831f7456ff | |
| parent | 4e6d3fc815c3d0cb76c7b127a1360d24f5783791 (diff) | |
make: Duplicate %.elc target
Do so to keep "default.mk" and "lisp/Makefile" in sync with the
respective files from other packages.
| -rw-r--r-- | default.mk | 4 | ||||
| -rw-r--r-- | lisp/Makefile | 4 | ||||
| -rw-r--r-- | test/Makefile | 6 |
3 files changed, 9 insertions, 5 deletions
@@ -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 9da347f..064f37d 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 25c4cdc..5476705 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 |
