From: Jordan Date: Fri, 16 Dec 2016 20:44:16 +0000 (-0800) Subject: merging X-Git-Url: https://git.kengrimes.com/?p=henge%2Fapc.git;a=commitdiff_plain;h=361cff1cf00a925edf03abea07ccdddc62ef6f77;hp=c74e77d70a21bd97bc6a8826c9cc278989b9d5bd merging merge branch 'master' of krull:apc --- diff --git a/Makefile b/Makefile index 2d713d3..6076653 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ OBJ := $(patsubst %.c,%.o,$(cSRC) $(cGEN)) $(foreach drv,$(DRIVERS),\ $(eval OTHERS := $(filter-out $(drv),$(DRIVERS)))\ $(eval $(drv)SRC := $(filter-out $(OTHERS:%=\%/%.o),$(OBJ)))\ -$(eval $(drv)-dSRC := $(filter-out $(OTHERS:%=\%/%-d.o),$(OBJ:%.o=%-d.o)))) +$(eval $(drv)-dSRC := $($(drv)SRC:%.o=%-d.o))) # Unless cleaning, deps should be generated for each source file ifeq (,$(filter clean,$(MAKECMDGOALS))) @@ -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: