]> Savannah Git Hosting - gnulib.git/commitdiff
parse-datetime: Revert last commit.
authorBruno Haible <bruno@clisp.org>
Wed, 12 Jun 2024 02:10:17 +0000 (04:10 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 12 Jun 2024 02:10:17 +0000 (04:10 +0200)
* modules/parse-datetime (Makefile.am): Remove the '$(srcdir)/' prefix
from the target. Add a comment.

ChangeLog
modules/parse-datetime

index ec9505fc701825b3e82f6e65e5f4acee7e154dea..cfc6537320118ccf260e65fd368606d1418a392d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-06-11  Bruno Haible  <bruno@clisp.org>
+
+       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  <eggert@cs.ucla.edu>
 
        mktempd: use GNU-style -t if available
index a49d3667ddb6f150e16c810fc51524951515b466..06c6f6173e6077596089ec5689a40b07917f1af7 100644 (file)
@@ -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"|' \