X-Git-Url: https://git.donarmstrong.com/?p=org-ref.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=bb522b5f5b969023f303ca97079544d91780d0f9;hp=0000000000000000000000000000000000000000;hb=e15d6b6fd62ef1ce8f807ef6f7b0f957cf9092a5;hpb=ba17f187726ffd48e951d82a77fb8a8e92117ec3 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..bb522b5 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +#!/usr/bin/make -f + +WHICH_EMACS:=$(shell which emacs >/dev/null 2>&1 || echo "fail") + +ELC_FILES= +ifeq ($(strip $(WHICH_EMACS)),) +ELC_FILES=$(patsubst %.el,%.elc,$(wildcard *.el)) org-ref.elc doi-utils.elc pubmed.elc +endif + +all: $(ELC_FILES) + +EMACS=emacs + +%.elc: %.el + $(EMACS) -q -no-site-file -L . -L .. -L ../helm --no-site-file -batch -f batch-byte-compile $<; + + +%.el: %.org + $(EMACS) -batch -q -no-site-file --visit $< --funcall org-babel-tangle + +