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~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f7169690ae7e89f4fe0b106fbce324be0202f4d;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 8c0dbbee..1dc910a2 100644 --- a/re2c/Makefile.am +++ b/re2c/Makefile.am @@ -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) $@ && \