]> git.donarmstrong.com Git - lib.git/blob - emacs_el/configuration/Makefile
switch to directly byte-compiling files, use install_package.el
[lib.git] / emacs_el / configuration / Makefile
1 #!/usr/bin/make
2
3
4 WHICH_EMACS:=$(shell which emacs >/dev/null 2>&1 || echo "fail")
5
6 ELC_FILES=
7 EL_FILES=
8 ORG_EL_FILES=
9 ifeq ($(strip $(WHICH_EMACS)),)
10 ORG_EL_FILES=don-configuration.el
11 ORG_ELC_FILES=don-configuration.elc
12 endif
13
14 LIB_PATH=
15
16 all: $(ORG_ELC_FILES)
17
18 EMACS=emacs
19
20 install_packages: install_packages.el
21         $(EMACS) --batch -q  --no-site-file $(LIB_PATH) -l install_packages.el && \
22         touch $@
23
24 $(ORG_ELC_FILES): %.elc: %.el install_packages
25         $(EMACS) --batch -q --no-site-file $(LIB_PATH) $(USE_PACKAGE) --eval "(byte-compile-file \"$<\")"
26
27 $(ORG_EL_FILES): %.el: %.org install_packages
28         $(EMACS) --batch -q --no-site-file --visit $< --funcall org-babel-tangle
29
30
31 clean: 
32         rm -f *.elc
33
34 .PHONY: clean all
35