My Emacs configuration.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Inspired by https://nullprogram.com/blog/2020/01/22/
  2. .POSIX:
  3. EMACS = emacs
  4. LDFLAGS = -L site-lisp $(patsubst %,-L %, $(wildcard elpa/*/))
  5. EL = site-lisp/timeline-tools.el site-lisp/db-customize.el site-lisp/db-emms.el site-lisp/db-eshell.el site-lisp/db-hydras.el site-lisp/db-mail.el site-lisp/db-music.el site-lisp/db-org.el site-lisp/db-projects.el site-lisp/db-utils.el site-lisp/db-utils-test.el site-lisp/timeline-tools.el
  6. TEST = $(wildcard site-lisp/*-test.el)
  7. ELC = $(EL:.el=.elc)
  8. TESTC = $(TEST:.el=.elc)
  9. .PHONY: compile test clean distclean sandbox-start
  10. compile: $(ELC) $(TESTC)
  11. test: $(ELC) $(TESTC)
  12. @echo "Testing $(TESTC)"
  13. @$(EMACS) -Q --batch $(LDFLAGS) $(patsubst %,-l %, $(TESTC)) -f ert-run-tests-batch
  14. clean:
  15. rm -f $(ELC) $(TESTC)
  16. distclean: clean
  17. rm -rfv elpa
  18. git checkout elpa
  19. sandbox-start:
  20. mkdir -p sandbox
  21. rm -f sandbox/.emacs.d
  22. ln -sT $(PWD) sandbox/.emacs.d
  23. HOME=$(PWD)/sandbox emacs
  24. timelinetools-test.elc: timeline-tools.elc
  25. .SUFFIXES: .el .elc
  26. .el.elc:
  27. @echo "Compiling $<"
  28. @$(EMACS) -Q --batch $(LDFLAGS) -f batch-byte-compile $<