]> granicus.if.org Git - re2c/commitdiff
Makefile.am: create target directory before writing into it 192/head
authorRoss Burton <ross.burton@intel.com>
Mon, 31 Jul 2017 14:43:41 +0000 (15:43 +0100)
committerRoss Burton <ross.burton@intel.com>
Tue, 1 Aug 2017 09:19:15 +0000 (10:19 +0100)
In some situations src/parse/ may not exist before a file is copied into the
directory. Ensure that this doesn't happen by creating the directory first.

re2c/Makefile.am

index 8c0dbbeebef64d717a11e66f684efdae87cf0eb5..1dc910a239d5f720e295b32e53897ea2fc68b996 100644 (file)
@@ -228,6 +228,7 @@ CLEANFILES = \
        $(DOC)
 
 $(AUTOGEN_PARSER): $(CUSTOM_PARSER)
+       $(AM_V_at)$(MKDIR_P) $(dir $@)
        $(AM_V_GEN) if test $(BISON) = "no"; \
        then \
                cp $(top_srcdir)/$(BOOTSTRAP_PARSER) $@ && \