# This file: http://user.it.uu.se/~embe8573/emacs-init/Makefile # 'make -s' to quiet down byte-compile=emacs -batch \ -eval "(setq load-path (append load-path '(\"~/js/\" \"~/.emacs.d/emacs-init/\" \"~/.emacs.d/emacs-init/ide/\" \"~/.emacs.d/emacs-init/w3m/\" \"~/.emacs.d/emacs-init/gnus/\" \"~/.emacs.d/lisp\" \"~/.emacs.d/elpa/google-translate-20160111.654\")))" \ -f batch-byte-compile # output errors and warnings only sed-filter=2>&1 | sed '/^\(Loading\|Wrote\)/d' # .emacs INIT_FILE=~/.emacs INIT_FILE_BC=$(INIT_FILE).elc # the rest ELS = $(shell zsh -c "ls -1 **/*.el") ELCS= $(ELS:.el=.elc) all: $(ELCS) $(INIT_FILE_BC) # compile .emacs $(INIT_FILE_BC): $(INIT_FILE) $(byte-compile) $< $(sed-filter) # compile the rest %.elc: %.el $(byte-compile) $< $(sed-filter) rm -f $<~ clean: $(shell zsh -c "rm -rf **/*.elc(N)") rm -f $(INIT_FILE_BC) again: ${MAKE} clean ${MAKE}