X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=emacs_el%2FMakefile;h=8f48010536b2418c5cb1ec9a8b7f515aab1f9698;hb=8f9b84c09fd62fc003e3ae891c9537572cb87763;hp=a044ede50978229c9bb53864c6f495bc14475703;hpb=4cfd6b1df482602d4813f2527b90688274b21176;p=lib.git diff --git a/emacs_el/Makefile b/emacs_el/Makefile index a044ede..8f48010 100644 --- a/emacs_el/Makefile +++ b/emacs_el/Makefile @@ -1,9 +1,19 @@ #!/usr/bin/make -all: $(patsubst %.el,%.elc,$(wildcard *.el)) + +WHICH_EMACS= + +ELC_FILES= +ifneq ($(shell (which emacs >/dev/null 2>&1 || echo -n "fail") && echo -n "success"),"fail") +ELC_FILES=$(patsubst %.el,%.elc,$(wildcard *.el)) +endif + +all: $(ELC_FILES) + +EMACS=emacs %.elc: %.el - emacs -q -no-site-file -L . --no-site-file -batch -f batch-byte-compile $<; + $(EMACS) -q -no-site-file -L . --no-site-file -batch -f batch-byte-compile $<; clean: rm -f *.elc