|
4 | 4 | # Makefile for the bootstrap module
|
5 | 5 | #
|
6 | 6 | # IDENTIFICATION
|
7 |
| -# $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.8 1997/04/18 08:55:55 vadim Exp $ |
| 7 | +# $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.9 1997/06/11 01:05:48 scrappy Exp $ |
8 | 8 | #
|
9 | 9 | #
|
10 | 10 | # We must build bootparse.c and bootscanner.c with yacc and lex and sed,
|
@@ -49,14 +49,16 @@ bootstrap.o: bootstrap_tokens.h
|
49 | 49 |
|
50 | 50 | bootstrap_tokens.hbootparse.c: bootparse.y
|
51 | 51 | $(YACC)$(YFLAGS)$<
|
52 |
| -sed -f boot.sed< y.tab.c> bootparse.c |
| 52 | +grep -v"^#" boot.sed> sedfile |
| 53 | +sed -f sedfile< y.tab.c> bootparse.c |
53 | 54 | mv y.tab.h bootstrap_tokens.h
|
54 |
| -rm -f y.tab.c |
| 55 | +rm -f y.tab.c sedfile |
55 | 56 |
|
56 | 57 | bootscanner.c: bootscanner.l
|
57 | 58 | $(LEX)$<
|
58 |
| -sed -f boot.sed< lex.yy.c> bootscanner.c |
59 |
| -rm -f lex.yy.c |
| 59 | +grep -v"^#" boot.sed> sedfile |
| 60 | +sed -f sedfile< lex.yy.c> bootscanner.c |
| 61 | +rm -f lex.yy.c sedfile |
60 | 62 |
|
61 | 63 | clean:
|
62 | 64 | rm -f SUBSYS.o$(OBJS) bootparse.c bootstrap_tokens.h bootscanner.c
|
|