aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index cae7a6d..ae5507d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,22 +1,25 @@
LOAD_PATH ?=
-BATCH = emacs -Q --batch $(LOAD_PATH)
+BATCH = emacs -Q --batch $(LOAD_PATH) -L .
-all: org-link-edit-autoloads.el org-link-edit.elc
+all: org-link-edit-autoloads.el org-link-edit.elc test-org-link-edit.elc
.PHONY: test
-test: org-link-edit.elc
- @$(BATCH) -L . -l test-org-link-edit \
+test: org-link-edit.elc test-org-link-edit.elc
+ @$(BATCH) -l test-org-link-edit \
--eval "(ert-run-tests-batch-and-exit '(not (tag interactive)))"
.PHONY: clean
clean:
- $(RM) org-link-edit-autoloads.el org-link-edit.elc
+ $(RM) org-link-edit-autoloads.el org-link-edit.elc test-org-link-edit.elc
%.elc: %.el
@$(BATCH) -f batch-byte-compile $<
%-autoloads.el: %.el
@$(BATCH) --eval \
- "(let (make-backup-files) \
- (update-file-autoloads \"$(CURDIR)/$<\" t \"$(CURDIR)/$@\"))"
+ "(let ((make-backup-files nil)) \
+ (if (fboundp 'loaddefs-generate) \
+ (loaddefs-generate default-directory \"$@\" \
+ (list \"test-org-link-edit.el\")) \
+ (update-file-autoloads \"$(CURDIR)/$<\" t \"$(CURDIR)/$@\")))"