Skip to content

Commit 8baf1de

Browse files
committed
make: Run check-declare-directory
1 parent 7228580 commit 8baf1de

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,19 @@ help:
3434
$(info make clean - remove generated files)
3535
@printf "\n"
3636

37-
lisp: $(ELCS) loaddefs
37+
lisp: $(ELCS) loaddefs check-declare
3838

3939
loaddefs: $(PKG)-autoloads.el
4040

4141
%.elc: %.el
4242
@printf "Compiling $<\n"
4343
@$(EMACS) -Q --batch $(EMACS_ARGS) $(LOAD_PATH) -f batch-byte-compile $<
4444

45+
check-declare:
46+
@printf " Checking function declarations\n"
47+
@$(EMACS) -Q --batch $(EMACS_ARGS) $(LOAD_PATH) \
48+
--eval "(check-declare-directory default-directory)"
49+
4550
CLEAN = $(ELCS) $(PKG)-autoloads.el
4651

4752
clean:

0 commit comments

Comments
 (0)