build: fix concurrent build failure

Reported by Dengke Du and Robert Yang.
https://lists.gnu.org/archive/html/bison-patches/2017-07/msg00000.html

* src/local.mk (src/yacc): Make sure the directory exists.
This commit is contained in:
Akim Demaille
2018-08-18 15:17:06 +02:00
parent 72252aaa97
commit e866c476fd
2 changed files with 3 additions and 0 deletions

View File

@@ -119,6 +119,7 @@ MOSTLYCLEANFILES += src/yacc
src/yacc:
$(AM_V_GEN)rm -f $@ $@.tmp
$(AM_V_at)$(MKDIR_P) src
$(AM_V_at)echo '#! /bin/sh' >$@.tmp
$(AM_V_at)echo "exec '$(bindir)/bison' -y "'"$$@"' >>$@.tmp
$(AM_V_at)chmod a+x $@.tmp