]> git.donarmstrong.com Git - lib.git/commitdiff
make this simpler so it works
authorDon Armstrong <don@donarmstrong.com>
Tue, 21 Jan 2014 01:07:30 +0000 (17:07 -0800)
committerDon Armstrong <don@donarmstrong.com>
Tue, 21 Jan 2014 01:07:30 +0000 (17:07 -0800)
emacs_el/Makefile

index 8f48010536b2418c5cb1ec9a8b7f515aab1f9698..b85c3cc588282a4e76dfcfe70235d1281a728f62 100644 (file)
@@ -1,10 +1,10 @@
 #!/usr/bin/make
 
 
-WHICH_EMACS=
+WHICH_EMACS:=$(shell which emacs >/dev/null 2>&1 || echo "fail")
 
 ELC_FILES=
-ifneq ($(shell (which emacs >/dev/null 2>&1 || echo -n "fail") && echo -n "success"),"fail")
+ifeq ($(strip $(WHICH_EMACS)),)
 ELC_FILES=$(patsubst %.el,%.elc,$(wildcard *.el))
 endif