2 ##################### -*- makefile-gmake -*-
6 ifneq (,$(filter build,$(MAKECMDGOALS)))
7 rule_targets = $(value $(1)_targets)
8 rule_deps = $(value $(1)_deps)
9 rule_msg = $(value $(1)_msg)
10 rule_cmd = $(value $(1)_cmd)
12 # Usage: $(eval $(call build_rule,<target>))
14 $(rule_targets): $(rule_deps) #$(omk_inc_file)
15 @$(QUIET_CMD_ECHO) " "$(rule_msg)"$$@" #"$$(call strip_out,$$@)"
19 # TODO: Include __goals.omk.inc only in the subtree
20 -include $(shell true; find $(BUILD_OMK_DIR) -name '*.omk.inc') # `true' is a hack for MinGW
21 # FIXME: Disable automatic remake of included files
23 $(foreach rule,$(prepared_rules),$(eval $(call build_rule,$(rule))))
29 endif # (,$(filter build,$(MAKECMDGOALS)))