From 5f7169690ae7e89f4fe0b106fbce324be0202f4d Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Mon, 31 Jul 2017 15:43:41 +0100 Subject: [PATCH] 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. --- re2c/Makefile.am | 1 + 1 file changed, 1 insertion(+) 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) $@ && \ -- 2.40.0