X-Git-Url: https://rtime.felk.cvut.cz/gitweb/omk.git/blobdiff_plain/fabfa6bb70902e77d81ac8275b070b7b57562820..628bd48e3f017f7f0e67da76d89463ba3297d9f6:/snippets/include.omk diff --git a/snippets/include.omk b/snippets/include.omk index 2c781f2..c483129 100644 --- a/snippets/include.omk +++ b/snippets/include.omk @@ -21,6 +21,7 @@ endif define include-pass-template include-pass-local: include-pass-local-$(2) include-pass-local-$(2): $$($(2)_GEN_HEADERS) $$(foreach f,$$(renamed_$(2)_GEN_HEADERS),$$(shell echo '$$(f)' | sed -e 's/^\(.*\)->.*$$$$/\1/')) + @mkdir -p $(1) @$$(foreach f, $$($(2)_HEADERS), cmp --quiet $$(SOURCES_DIR)/$$(f) $(1)/$$(notdir $$(f)) \ || $$(call cp_cmd,$$(SOURCES_DIR)/$$(f),$(1)/$$(notdir $$(f))) || exit 1 ; ) @$$(foreach f, $$($(2)_GEN_HEADERS), cmp --quiet $$(f) $(1)/$$(notdir $$(f)) \ @@ -36,7 +37,3 @@ include-pass-local-$(2): $$($(2)_GEN_HEADERS) $$(foreach f,$$(renamed_$(2)_GEN_H cmp --quiet $$$${srcfname} $(1)/$$$${destfname} \ || ( mkdir -p `dirname $(1)/$$$${destfname}` && $$(call cp_cmd,$$(LOCAL_BUILD_DIR)/$$$${srcfname},$(1)/$$$${destfname}) ) || exit 1 ; ) endef - -# Local Variables: -# mode:makefile -# End: