EMACS ?= emacs SRCS = org-roam-project.el ELCS = $(SRCS:.el=.elc) .PHONY: all compile test clean all: compile test compile: $(ELCS) %.elc: %.el $(EMACS) --batch -l org-roam -f batch-byte-compile $< test: $(EMACS) --batch \ -l ert \ -l org-roam \ --eval "(add-to-list 'load-path (file-name-directory (expand-file-name \"org-roam-project.el\")))" \ -l org-roam-project \ -l org-roam-project-test \ -f ert-run-tests-batch-and-exit clean: rm -f $(ELCS)