diff options
author | Stefan Agner <stefan@agner.ch> | 2019-11-26 09:20:30 +0100 |
---|---|---|
committer | Stefan Agner <stefan@agner.ch> | 2019-11-26 09:22:30 +0100 |
commit | 77b27c07df2bdff86945766a4728b6012062535c (patch) | |
tree | 83fe565206b25efac330f6d00e2376c5083bb16b /Makefile-ostree.am | |
parent | 1dff567f2c8cdaa16ec865ee1aae75c6a6b0bc84 (diff) | |
download | ostree-77b27c07df2bdff86945766a4728b6012062535c.tar.gz |
Avoid race condition when building outside of source tree
When building outside of source tree it can happen that src/ostree/
does not exist (yet) when bison is called. This leads to an build
error like so:
bison: src/ostree/parse-datetime.c: cannot open: No such file or directory
Make sure that src/ostree/ exists when parse-datetime.c is built.
Diffstat (limited to 'Makefile-ostree.am')
-rw-r--r-- | Makefile-ostree.am | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile-ostree.am b/Makefile-ostree.am index 76f39cad..f861afe4 100644 --- a/Makefile-ostree.am +++ b/Makefile-ostree.am @@ -123,6 +123,7 @@ ostree_SOURCES += src/ostree/ot-remote-builtin-add-cookie.c \ endif src/ostree/parse-datetime.c: src/ostree/parse-datetime.y Makefile + mkdir -p src/ostree/ $(AM_V_GEN) $(YACC) $< -o $@ EXTRA_DIST += src/ostree/parse-datetime.y |