From: Don Armstrong Date: Tue, 21 Jan 2014 01:07:30 +0000 (-0800) Subject: make this simpler so it works X-Git-Url: https://git.donarmstrong.com/?p=lib.git;a=commitdiff_plain;h=a1bc3d2aea212e9baf2df13c3dd041cbeed7c8d1 make this simpler so it works --- diff --git a/emacs_el/Makefile b/emacs_el/Makefile index 8f48010..b85c3cc 100644 --- a/emacs_el/Makefile +++ b/emacs_el/Makefile @@ -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