X-Git-Url: http://rtime.felk.cvut.cz/gitweb/omk.git/blobdiff_plain/73199f1b1f0af3770c393bd00863266c66310bea..bc23e6f5567cdeb5ab7be04f369cb19fb3ca180e:/snippets/build.omk diff --git a/snippets/build.omk b/snippets/build.omk index 4182342..165f715 100644 --- a/snippets/build.omk +++ b/snippets/build.omk @@ -16,8 +16,16 @@ $(rule_targets): $(rule_deps) #$(omk_inc_file) $(Q)$(rule_cmd) endef -# TODO: Include __goals.omk.inc only in the subtree --include $(shell true; find $(BUILD_OMK_DIR) -name '*.omk.inc') # `true' is a hack for MinGW +# Goals are included only for this directory and all subdirectories +# TODO: What if a target depends on a library from different +# subtree. Then the library would be remade even if it should not +# because its __goals.omk.inc is not included. +-include $(shell true; find $(OMK_WORK_DIR) -name '__goals.omk.inc') # `true' is a hack for MinGW + +# Definition of rules is included everywhere to allow multi-directory +# targets. +-include $(shell true; find $(BUILD_OMK_DIR) -name '*.omk.inc' -not -name '__goals.omk.inc') # `true' is a hack for MinGW + # FIXME: Disable automatic remake of included files $(foreach rule,$(prepared_rules),$(eval $(call build_rule,$(rule))))