From: Ross Burton Date: Tue, 9 May 2017 14:32:36 +0000 (+0100) Subject: Makefile: ensure utils/ exists before writing to it X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=32a4d43dedfd22654f6b9882571ec9c4e03d3e05;p=kconfig-frontends Makefile: ensure utils/ exists before writing to it Since utils/ was changed to not build recursively it's possible that in out-of-tree builds the utils/ directory hasn't been created when Make runs the utils/kconfig-tweak target which tries to write to file inside utils/. This is the case, for example, when using --disable-dependency-tracking. To ensure this can work, mkdir the directory. Signed-off-by: Ross Burton Signed-off-by: Yann E. MORIN --- diff --git a/Makefile.am b/Makefile.am index c8e96ef..1baa110 100644 --- a/Makefile.am +++ b/Makefile.am @@ -348,6 +348,7 @@ EXTRA_DIST += \ utils/kconfig-tweak.in.patch utils/kconfig-tweak: utils/kconfig-tweak.in + $(MKDIR_P) $(@D) $(AM_V_GEN)$(SED) -e "s/@CONFIG_@/$(config_prefix)/g" \ $< >$@ @chmod +x $@