mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +03:00
Remove all traces that suggest that a non-Bison yacc might be supported, and
change build system to use only Bison. Simplify build rules, make file names uniform. Don't build the token table header file where it is not needed.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#
|
||||
# Copyright (c) 1998-2008, PostgreSQL Global Development Group
|
||||
#
|
||||
# $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/Makefile,v 1.135 2008/05/21 19:51:01 meskes Exp $
|
||||
# $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/Makefile,v 1.136 2008/08/29 13:02:32 petere Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
@@ -36,13 +36,11 @@ ecpg: $(OBJS)
|
||||
# pgc is compiled as part of preproc
|
||||
preproc.o: $(srcdir)/pgc.c
|
||||
|
||||
$(srcdir)/preproc.c: $(srcdir)/preproc.h ;
|
||||
$(srcdir)/preproc.h: $(srcdir)/preproc.c ;
|
||||
|
||||
$(srcdir)/preproc.h: preproc.y
|
||||
ifdef YACC
|
||||
$(YACC) -d $(YFLAGS) $<
|
||||
mv -f y.tab.c $(srcdir)/preproc.c
|
||||
mv -f y.tab.h $(srcdir)/preproc.h
|
||||
$(srcdir)/preproc.c: preproc.y
|
||||
ifdef BISON
|
||||
$(BISON) -d $(BISONFLAGS) -o $@ $<
|
||||
else
|
||||
@$(missing) bison $< $@
|
||||
endif
|
||||
@@ -74,10 +72,8 @@ uninstall:
|
||||
|
||||
clean distclean:
|
||||
rm -f keywords.c *.o ecpg$(X)
|
||||
# garbage from partial builds
|
||||
@rm -f y.tab.c y.tab.h
|
||||
# garbage from development
|
||||
@rm -f core a.out *.output *.tab.c
|
||||
@rm -f core a.out
|
||||
|
||||
# `make clean' does not remove preproc.c, preproc.h, or pgc.c since we
|
||||
# want to ship those files in the distribution for people with
|
||||
|
||||
Reference in New Issue
Block a user