Otherwise we risk breaking VPATH builds from the tarball, as make may
attempt to regenerate the headers.
src/scan.c src/scan.h: src/scan.stamp
src/parse.c src/parse.h: src/parse.stamp
+# The flex/bison rules refrain from updating unchanged headers for the
+# convenience of developers, but the headers must be distributed with
+# up-to-date timestamps, otherwise make will try to update them in a fresh
+# VPATH build.
+dist-hook: update-headers
+update-headers:
+ touch -c '$(distdir)/src/scan.h'
+ touch -c '$(distdir)/src/parse.h'
+
# Supporting rules for bison/flex.
BISON_V = $(BISON_V_$(V))