From: Chuan-kai Lin <cklin@debian.org>
Date: Sun, 16 Jun 2019 13:12:30 -0700
Subject: Keep build stamp files

Do not delete stamp files outside the Make rules that generates those
same stamp files.  Force deletion of stamp files interferes with our
ability to prevent example extraction from non-DFSG documentation source
(moved into the bison-doc source package) and also breaks parallel
builds.

Bug-Debian: http://bugs.debian.org/732034
Forwarded: not-needed
Last-Update: 2019-06-16
---
 examples/c/reccalc/local.mk | 1 -
 examples/local.mk           | 1 -
 2 files changed, 2 deletions(-)

diff --git a/examples/c/reccalc/local.mk b/examples/c/reccalc/local.mk
index 4515f22..d5f5145 100644
--- a/examples/c/reccalc/local.mk
+++ b/examples/c/reccalc/local.mk
@@ -38,7 +38,6 @@ DASH = -
 %D%/reccalc$(DASH)parse.o: %D%/scan.h
 
 %D%/scan.c %D%/scan.h: %D%/scan.stamp
-	@test -f $@ || rm -f %D%/scan.stamp
 	@test -f $@ || $(MAKE) $(AM_MAKEFLAGS) %D%/scan.stamp
 
 %D%/scan.stamp: %D%/scan.l
diff --git a/examples/local.mk b/examples/local.mk
index ff04345..e4bb54c 100644
--- a/examples/local.mk
+++ b/examples/local.mk
@@ -59,7 +59,6 @@ MAINTAINERCLEANFILES += $(extracted) %D%/extracted.stamp
 	$(AM_V_at)mv $@.tmp $@
 
 $(extracted): %D%/extracted.stamp
-	@test -f $@ || rm -f %D%/extracted.stamp
 	@test -f $@ || $(MAKE) $(AM_MAKEFLAGS) %D%/extracted.stamp
 
 
