-endif
-
-# Construct the S2S function for generating source files during prerequisite
-# 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
-ifeq (,$(filter clean,$(MAKECMDGOALS)))
-S2S = $(info $(call $1,$2,$3))
+# Filter only missing deps
+cMISDEP = $(strip $(foreach dep,$(call cGENDEP,$1),$(if $(wildcard src/$(dep)),,$(dep))))
+# S2S will print the command necessary to create a file when called
+S2S = $(if $(filter $2,$(call NEWER,$2,$3)),$(eval 4 := t),$(eval 4 :=))
+S2S += $(if $4,$(info $(call $1,$2,$3)))