]> git.donarmstrong.com Git - lib.git/blob - emacs_el/configuration/Makefile
use yasnippet from straight
[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 # Disable byte compilation for now
12 # ORG_ELC_FILES=don-configuration.elc
13 endif
14
15 LIB_PATH=
16
17 all: $(ORG_EL_FILES)
18
19 EMACS=emacs
20
21 install_packages: install_packages.el
22         $(EMACS) --batch -q  --no-site-file $(LIB_PATH) -l install_packages.el && \
23         touch $@
24
25 $(ORG_ELC_FILES): %.elc: %.el install_packages
26         $(EMACS) --batch -q --no-site-file $(LIB_PATH) $(USE_PACKAGE) --eval "(byte-compile-file \"$<\")"
27
28 $(ORG_EL_FILES): %.el: %.org install_packages
29         $(EMACS) --batch -q --no-site-file --visit $< --funcall org-babel-tangle
30
31
32 clean: 
33         rm -f *.elc
34
35 .PHONY: clean all
36