Makefile 656 B

12345678910111213141516171819202122232425
  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:
  11. cask clean-elc
  12. UNDERCOVER_CONFIG='((:send-report nil))' cask exec buttercup -L . tests
  13. cask exec buttercup -L . tests tests-with-flx-ido
  14. compile: $(ELC_FILES)
  15. $(ELC_FILES): .compile.intermediate
  16. .compile.intermediate: $(ELISP_FILES)
  17. cask build
  18. clean:
  19. cask clean-elc