#!/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