Make all intermediate files secondary

This way make won’t remove them after compilation is done. Normally
this might be useful, but in the case of Emacs Lisp being generated
from Org files, it’s really useful to have the original lisp files
after compiling them to elc files.
This commit is contained in:
Tom Willemse 2017-03-05 22:10:40 -08:00
parent c727acf496
commit 4d01c6d8bf

View file

@ -1,5 +1,7 @@
include ../../dotfiles.mk include ../../dotfiles.mk
.SECONDARY:
AUTOLOADS_FILE = site-lisp/site-autoloads.el AUTOLOADS_FILE = site-lisp/site-autoloads.el
UNWANTED = $(AUTOLOADS_FILE) site-lisp/flycheck_% site-lisp/flycheck-% UNWANTED = $(AUTOLOADS_FILE) site-lisp/flycheck_% site-lisp/flycheck-%
SITE_LISPS = $(addsuffix c,$(filter-out $(UNWANTED),$(wildcard site-lisp/*.el))) SITE_LISPS = $(addsuffix c,$(filter-out $(UNWANTED),$(wildcard site-lisp/*.el)))