Makefile 687 B

12345678910111213141516171819202122232425262728
  1. ELISP_FILES := $(shell cask files)
  2. ELC_FILES := $(patsubst %.el,%.elc,$(ELISP_FILES))
  3. .PHONY: test compile clean
  4. .INTERMEDIATE: .compile.intermediate
  5. all: test
  6. # We run clean-elc first because undercover.el doesn't support elc
  7. # files. We run the tests first without loading flx-ido, and then with
  8. # it. We only send the coverage report when running the full test
  9. # suite.
  10. test: clean
  11. cask exec buttercup -L . tests
  12. test-with-flx: clean
  13. cask exec buttercup -l tests/setup-undercover.el -L . tests tests-with-flx-ido
  14. all-tests: test test-with-flx
  15. compile: $(ELC_FILES)
  16. $(ELC_FILES): .compile.intermediate
  17. .compile.intermediate: $(ELISP_FILES)
  18. cask build
  19. clean:
  20. cask clean-elc