]> git.donarmstrong.com Git - lib.git/blob - emacs_el/Makefile
add configuration subdirectory
[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) configuration
12
13 EMACS=emacs
14
15 configuration:
16         $(MAKE) -C configuration
17
18 %.elc: %.el
19         $(EMACS) -q -no-site-file -L . --no-site-file -batch -f batch-byte-compile $<;
20
21 clean: 
22         rm -f *.elc
23
24 .PHONY: clean all configuration
25