]> granicus.if.org Git - re2c/commitdiff
Makefile.am: create target directory before writing into it 191/head
authorRoss Burton <ross.burton@intel.com>
Mon, 31 Jul 2017 14:43:41 +0000 (15:43 +0100)
committerRoss Burton <ross.burton@intel.com>
Mon, 31 Jul 2017 14:45:37 +0000 (15:45 +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 f3de015651282079ac3cc01e936ac98d343da9ee..8c0dbbeebef64d717a11e66f684efdae87cf0eb5 100644 (file)
@@ -252,6 +252,7 @@ $(BOOTSTRAP_PARSER): $(CUSTOM_PARSER)
                $(top_srcdir)/$(CUSTOM_PARSER);
 
 .re.cc:
+       $(AM_V_at)$(MKDIR_P) $(dir $@)
        $(AM_V_GEN) if test -x $(RE2C); \
        then \
                $(top_builddir)/$(RE2C) $(RE2CFLAGS) -o $@ $< && \