File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -61,31 +61,23 @@ ELCHECKS=$(addprefix check-, $(ELFILES:.el=))
61
61
62
62
% .elc : % .el
63
63
@$(BATCH ) \
64
- -f batch-byte-compile $<
64
+ --eval " (setq byte-compile-error-on-warn t)" \
65
+ -f batch-byte-compile $* .el
65
66
66
67
.PHONY : all compile info clean check $(ELCHECKS ) elpa package
67
68
68
69
all : compile $(AUTOLOADS ) info
69
70
70
71
compile : $(ELCFILES )
71
72
72
- $(ELCHECKS ) : check-% : % .el
73
+ $(ELCHECKS ) : check-% : % .el % .elc
73
74
@$(BATCH ) --eval ' (when (check-declare-file "$*.el") (error "check-declare failed"))'
74
- @$(BATCH ) \
75
- --eval " (setq byte-compile-error-on-warn t)" \
76
- -f batch-byte-compile $* .el
77
- @$(RM ) $* .elc
78
75
@if [ -f " $( < :%.el=tests/%-tests.el) " ]; then \
79
- if $( BATCH) --eval " (require 'ert)" 2> /dev/null; then \
80
- echo ; \
81
76
$(BATCH ) -l " $( < :%.el=tests/%-tests.el) " -f ert-run-tests-batch-and-exit; \
82
- else \
83
- echo " ERT not available, skipping unit tests" ; \
84
- fi ; \
85
77
fi
86
78
@echo " --"
87
79
88
- check : clean $(ELCHECKS )
80
+ check : $(ELCHECKS )
89
81
@echo " checks passed!"
90
82
91
83
clean :
You can’t perform that action at this time.
0 commit comments