]> granicus.if.org Git - re2c/commitdiff
Makefile.am (building docs): create target directory before writing into it.
authorUlya Trofimovich <skvadrik@gmail.com>
Tue, 1 Aug 2017 10:19:27 +0000 (11:19 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Tue, 1 Aug 2017 10:19:27 +0000 (11:19 +0100)
To reproduce build falure (before the fix):

    $ mkdir <builddir>
    $ cd <builddir>
    $ ../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

re2c/Makefile.am

index 28afa53e540ca2b59745ee6bcbb6c818ee250af4..54afcc9b8986519b419e33fa3926eff386b138fa 100644 (file)
@@ -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