mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
Gen_fmgrtab.sh is strange: it is a platform dependent way (because it uses
CPP) to create platform independent files. Unfortunately, that means that every config.status (or configure) run invariably causes a relink of the postmaster and also that we can't put these files in the distribution (usefully). So we make it a little smarter: when the output files already exist and it notices that it would recreate them in identical form, it doesn't touch them. In order to avoid re-running the make rule all the time we update a timestamp file instead. Update release_prep accordingly. Also make Gen_fmgrtab.sh use the awk that is detected at configure time, not necessarily named `awk' and have it check for exit statuses a little better. In other news... Remove USE_LOCALE from the templates, it was set to `no' everywhere anyway. Also remove YACC and YFLAGS from the templates, configure is smart enough to find bison or yacc itself. Use AC_PROG_YACC for that instead of the hand-crafted code. Do not set YFLAGS to `-d'. The make rules that need this flag should explicitly invoke it. YFLAGS should be a user variable. Update the makefiles to that effect.
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
# Makefile for the bootstrap module
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.22 2000/05/29 05:44:42 tgl Exp $
|
||||
# $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.23 2000/06/07 16:26:37 petere Exp $
|
||||
#
|
||||
#
|
||||
# We must build bootparse.c and bootscanner.c with yacc and lex and sed,
|
||||
@ -48,14 +48,14 @@ SUBSYS.o: $(OBJS)
|
||||
bootstrap.o: bootstrap_tokens.h
|
||||
|
||||
bootstrap_tokens.h bootparse.c: bootparse.y
|
||||
$(YACC) $(YFLAGS) $<
|
||||
$(YACC) -d $(YFLAGS) $<
|
||||
grep -v "^#" boot.sed > sedfile
|
||||
sed -f sedfile < y.tab.c > bootparse.c
|
||||
mv y.tab.h bootstrap_tokens.h
|
||||
rm -f y.tab.c sedfile
|
||||
|
||||
bootscanner.c: bootscanner.l
|
||||
$(LEX) $<
|
||||
$(LEX) $(LFLAGS) $<
|
||||
grep -v "^#" boot.sed > sedfile
|
||||
sed -f sedfile < lex.yy.c > bootscanner.c
|
||||
rm -f lex.yy.c sedfile
|
||||
|
Reference in New Issue
Block a user