# this file: # https://dataswamp.org/~incal/terror-3/Makefile make-opts = -s -j -k emacs = emacs # desktop 29.0.50, droid 24.5.1 emacs-run-opts = "(progn (setq auto-save-default nil) (setq make-backup-files nil) (setq load-path (append load-path '(\".\"))))" compile-opts = "(setq load-path (append load-path '(\".\")))" compile-cmd = $(emacs) -batch -eval $(compile-opts) -f batch-byte-compile sed-filter = 2>&1 | sed '/^\(Loading\|Wrote\)/d' error-file = error.txt ELS = $(shell ls -1 *.el) ELCS = $(ELS:.el=.elc) all: $(ELCS) rm -f $(error-file) %.elc: %.el $(compile-cmd) $< $(sed-filter) > $(error-file) if [ -s $(error-file) ]; then echo -n "\n$<: "; cat $(error-file); fi run: $(emacs) -Q --eval $(emacs-run-opts) -l ev3.el clean: $(shell rm -rf *.elc) rm -f $(error-file) again: $(MAKE) $(make-opts) clean $(MAKE) $(make-opts)