]> git.donarmstrong.com Git - lib.git/blob - emacs_el/Makefile
make this simpler so it works
[lib.git] / emacs_el / Makefile
1 #!/usr/bin/make
2
3
4 WHICH_EMACS:=$(shell which emacs >/dev/null 2>&1 || echo "fail")
5
6 ELC_FILES=
7 ifeq ($(strip $(WHICH_EMACS)),)
8 ELC_FILES=$(patsubst %.el,%.elc,$(wildcard *.el))
9 endif
10
11 all: $(ELC_FILES)
12
13 EMACS=emacs
14
15 %.elc: %.el
16         $(EMACS) -q -no-site-file -L . --no-site-file -batch -f batch-byte-compile $<;
17
18 clean: 
19         rm -f *.elc
20
21 .PHONY: clean all
22