diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2021-12-07 23:45:11 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2021-12-07 23:45:11 +0100 |
| commit | c7834354f663ac9a9e6bbdc71947f8b2c36f8d65 (patch) | |
| tree | e060761e23f613912b42a1754266f8e41bc78186 /lisp/Makefile | |
| parent | a0f3bb0d9c16bdaef7df8348c5d0d4748fb27f27 (diff) | |
make: Add check-declare target
It would be best to automatically run this after compiling, but for
most people that would result in false-positives because of missing
and entirely optional extensions but anyone can opt-in by adding
"check-declare" to LISP_EXTRA_TARGETS in config.mk.
Diffstat (limited to 'lisp/Makefile')
| -rw-r--r-- | lisp/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/Makefile b/lisp/Makefile index 2a87e30..72dcc91 100644 --- a/lisp/Makefile +++ b/lisp/Makefile @@ -3,7 +3,7 @@ include ../default.mk ## ################################################################### -.PHONY: magit-version.el install +.PHONY: magit-version.el check-declare install all: lisp @@ -70,7 +70,7 @@ magit-obsolete.elc: magit.elc ## Build ############################################################# -lisp: $(ELCS) loaddefs +lisp: $(ELCS) loaddefs $(LISP_EXTRA_TARGETS) loaddefs: $(PKG)-autoloads.el versionlib: $(PKG)-version.el @@ -99,6 +99,11 @@ $(PKG)-version.el: @printf "Generating $@\n" @printf "%s" "$$VERSIONLIB_TMPL" > $@ +check-declare: + @printf "Checking function declarations\n" + @$(BATCH) -L $(TOP)../borg -L $(TOP)../forge/lisp \ + --eval "(check-declare-directory default-directory)" + ## Install ########################################################### install: lisp versionlib |
