From: Ross Burton Date: Mon, 31 Jul 2017 14:43:41 +0000 (+0100) Subject: Makefile.am: create target directory before writing into it X-Git-Tag: 1.0~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=refs%2Fpull%2F191%2Fhead;p=re2c Makefile.am: create target directory before writing into it 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. --- diff --git a/re2c/Makefile.am b/re2c/Makefile.am index f3de0156..8c0dbbee 100644 --- a/re2c/Makefile.am +++ b/re2c/Makefile.am @@ -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 $@ $< && \