From: Ulya Trofimovich Date: Tue, 1 Aug 2017 10:19:27 +0000 (+0100) Subject: Makefile.am (building docs): create target directory before writing into it. X-Git-Tag: 1.0~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f4734c4ff74eb19b60f4b75e7500144ab3988e32;p=re2c Makefile.am (building docs): create target directory before writing into it. To reproduce build falure (before the fix): $ mkdir $ cd $ ../condigure --disable-dependency-tracking $ make src/conf/help.cc V=1 cp ../bootstrap/src/conf/help.cc src/conf/help.cc cp: cannot create regular file ‘src/conf/help.cc’: No such file or directory Makefile:1984: recipe for target 'src/conf/help.cc' failed make: *** [src/conf/help.cc] Error 1 --- diff --git a/re2c/Makefile.am b/re2c/Makefile.am index 28afa53e..54afcc9b 100644 --- a/re2c/Makefile.am +++ b/re2c/Makefile.am @@ -287,6 +287,7 @@ docs: $(DOC) $(AUTOGEN_HELP) $(DOC): $(BOOTSTRAP_DOC) cp $(top_srcdir)/$(BOOTSTRAP_DOC) $@ $(AUTOGEN_HELP): $(BOOTSTRAP_HELP) + $(AM_V_at)$(MKDIR_P) $(dir $@) cp $(top_srcdir)/$(BOOTSTRAP_HELP) $@ endif