From 1e0a00dea46cd98b1f1a1ad2e9371a83239a9e23 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 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 $@ $< && \ -- 2.40.0