From fb0869ab64236bc31ef9a2214df09b2540e77164 Mon Sep 17 00:00:00 2001 From: ken Date: Fri, 16 Dec 2016 12:33:13 -0800 Subject: [PATCH] cleanup --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 20c74d6..6076653 100644 --- a/Makefile +++ b/Makefile @@ -58,8 +58,12 @@ endif # expansion: # If we are cleaning, stop. Else print the result of calling '1'. Then, unless # we are in -n mode, invoke the result of calling '1' in the shell -$(if $(filter clean,$(MAKECMDGOALS)),,$(eval S2S += $$(info $$(call $$1,$$2,$$3)))\ -$(if $(filter n,$(MAKEFLAGS)),,$(eval S2S += $$(shell $$(call $$1,$$2,$$3))))) +ifeq (,$(filter clean,$(MAKECMDGOALS))) +S2S = $(info $(call $1,$2,$3)) +ifeq (,$(filter n,$(MAKEFLAGS))) +S2S += $(shell $(call $1,$2,$3)) +endif +endif # Rules .SECONDEXPANSION: -- 2.18.0