]> git.sur5r.net Git - kconfig-frontends/commitdiff
Makefile: ensure utils/ exists before writing to it
authorRoss Burton <ross.burton@intel.com>
Tue, 9 May 2017 14:32:36 +0000 (15:32 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Tue, 9 May 2017 19:11:52 +0000 (21:11 +0200)
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 <ross.burton@intel.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Makefile.am

index c8e96ef18a1946be458f054c9fb97d8b8cbd7a6c..1baa110cbf84e1000a8b66c1b3a074dc586f2d50 100644 (file)
@@ -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 $@