From: Bruno Haible Date: Wed, 12 Jun 2024 02:10:17 +0000 (+0200) Subject: parse-datetime: Revert last commit. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=609921b1eef111f39291dc03d8996244d3dd13d2;p=gnulib.git parse-datetime: Revert last commit. * modules/parse-datetime (Makefile.am): Remove the '$(srcdir)/' prefix from the target. Add a comment. --- diff --git a/ChangeLog b/ChangeLog index ec9505fc70..cfc6537320 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-06-11 Bruno Haible + + parse-datetime: Revert last commit. + * modules/parse-datetime (Makefile.am): Remove the '$(srcdir)/' prefix + from the target. Add a comment. + 2024-06-11 Paul Eggert mktempd: use GNU-style -t if available diff --git a/modules/parse-datetime b/modules/parse-datetime index a49d3667dd..06c6f6173e 100644 --- a/modules/parse-datetime +++ b/modules/parse-datetime @@ -46,7 +46,10 @@ Makefile.am: # Additionally, here we assume GNU Bison and therefore don't need the ylwrap # script. # Therefore we override this rule. -$(srcdir)/parse-datetime.c: parse-datetime.y +# Unfortunately, overriding the Automake generated .y.c rule does not work in +# VPATH builds with OpenBSD make. Therefore, for VPATH builds on OpenBSD, the +# user will need GNU make. +parse-datetime.c: parse-datetime.y $(AM_V_YACC)$(PARSE_DATETIME_BISON) $(YFLAGS) $(AM_YFLAGS) $(srcdir)/parse-datetime.y \ && test ':' = '$(PARSE_DATETIME_BISON)' || { \ sed -e 's|".*/parse-datetime\.y"|"parse-datetime.y"|' \