]> git.donarmstrong.com Git - lib.git/blob - emacs_el/Makefile
fix missing ) for org-mode
[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 SUBDIRS=
12 LIBOPTS=-L .
13 ifeq ($(strip $(WHICH_EMACS)),)
14 SUBDIRS=configuration helm org-ref
15 LIBDIRS=-L . -L helm
16 endif
17
18
19 all: $(ELC_FILES) $(SUBDIRS)
20
21 EMACS=emacs
22
23 $(SUBDIRS): %: 
24         $(MAKE) -C $@
25
26 %.elc: %.el
27         $(EMACS) -q -no-site-file $(LIBDIRS) --no-site-file -batch -f batch-byte-compile $<;
28
29 clean: 
30         rm -f *.elc
31
32 .PHONY: clean all $(SUBDIRS)
33