diff options
| author | Peter Eisentraut | 2000-06-07 16:27:00 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2000-06-07 16:27:00 +0000 |
| commit | e3059fc0f53ede1ae6f95076034b678f394d2e7a (patch) | |
| tree | 173e8b5e3767928d823f8b45f4ebe2737f3f550d /src/backend/parser | |
| parent | 7d301947e595eda323a441af499b432eb2886293 (diff) | |
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.
Diffstat (limited to 'src/backend/parser')
| -rw-r--r-- | src/backend/parser/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/parser/Makefile b/src/backend/parser/Makefile index 1fdbd55a382..22310f8e282 100644 --- a/src/backend/parser/Makefile +++ b/src/backend/parser/Makefile @@ -4,7 +4,7 @@ # Makefile for parser # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/backend/parser/Makefile,v 1.25 2000/05/29 05:44:53 tgl Exp $ +# $Header: /cvsroot/pgsql/src/backend/parser/Makefile,v 1.26 2000/06/07 16:26:41 petere Exp $ # #------------------------------------------------------------------------- @@ -25,12 +25,12 @@ SUBSYS.o: $(OBJS) $(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS) gram.c parse.h: gram.y - $(YACC) $(YFLAGS) $< + $(YACC) -d $(YFLAGS) $< mv y.tab.c gram.c mv y.tab.h parse.h scan.c: scan.l - $(LEX) $< + $(LEX) $(LFLAGS) $< mv lex.yy.c scan.c # The following dependencies on parse.h are computed by |
