File: 0002-Don-t-run-bison-twice.patch

package info (click to toggle)
sketch 1%3A0.3.7-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,676 kB
  • sloc: ansic: 6,847; lex: 434; yacc: 361; xml: 161; perl: 152; makefile: 148; sh: 45
file content (28 lines) | stat: -rw-r--r-- 748 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: David Bremner <bremner@debian.org>
Date: Tue, 22 Aug 2017 21:27:31 -0300
Subject: [PATCH 2/3] Don't run bison twice

Previously bison is run twice, with an output file already being used
while the second bison regenerates it again resulting in an incomplete
file being used.

Based on a patch from Adrian Bunk
---
 makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/makefile b/makefile
index b563f09..a820977 100644
--- a/makefile
+++ b/makefile
@@ -43,7 +43,9 @@ HEADERS=bsp.h cmdline.h dynarray.h emit.h error.h expr.h geometry.h geomio.h\
 $(EXE) : $(OBJECTS)
 	$(CC) -o $(EXE) $(OBJECTS) -lm
 
-y.tab.c y.tab.h : sketch.y
+y.tab.c : y.tab.h
+
+y.tab.h : sketch.y
 	$(YACC) $<
 
 lex.yy.c : sketch.l