##################### -*- makefile-gmake -*-
# Build pseudo-pass #
#####################
-ifneq (,$(filter build,$(MAKECMDGOALS)))
-all: build-pseudo-pass
+ifneq (,$(filter build,$(MAKECMDGOALS)))
rule_targets = $(value $(1)_targets)
rule_deps = $(value $(1)_deps)
rule_msg = $(value $(1)_msg)
endef
# TODO: Include __goals.omk.inc only in the subtree
--include $(shell true; find $(USER_BUILD_DIR) -name '*.omk.inc') # `true' is a hack for MinGW
+-include $(shell true; find $(BUILD_OMK_DIR) -name '*.omk.inc') # `true' is a hack for MinGW
# FIXME: Disable automatic remake of included files
$(foreach rule,$(prepared_rules),$(eval $(call build_rule,$(rule))))
.PHONY: build
-build: $(foreach target,$(omk_goals),$(target))
+
+build: $(omk_goals)
+
endif # (,$(filter build,$(MAKECMDGOALS)))