mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +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:
@ -1,3 +1,2 @@
|
||||
segparse.c
|
||||
segparse.h
|
||||
segscan.c
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $PostgreSQL: pgsql/contrib/seg/Makefile,v 1.20 2007/11/10 23:59:51 momjian Exp $
|
||||
# $PostgreSQL: pgsql/contrib/seg/Makefile,v 1.21 2008/08/29 13:02:32 petere Exp $
|
||||
|
||||
MODULE_big = seg
|
||||
OBJS = seg.o segparse.o
|
||||
@ -23,15 +23,9 @@ endif
|
||||
# segscan is compiled as part of segparse
|
||||
segparse.o: $(srcdir)/segscan.c
|
||||
|
||||
# See notes in src/backend/parser/Makefile about the following two rules
|
||||
|
||||
$(srcdir)/segparse.c: $(srcdir)/segparse.h ;
|
||||
|
||||
$(srcdir)/segparse.h: segparse.y
|
||||
ifdef YACC
|
||||
$(YACC) -d $(YFLAGS) $<
|
||||
mv -f y.tab.c $(srcdir)/segparse.c
|
||||
mv -f y.tab.h $(srcdir)/segparse.h
|
||||
$(srcdir)/segparse.c: segparse.y
|
||||
ifdef BISON
|
||||
$(BISON) $(BISONFLAGS) -o $@ $<
|
||||
else
|
||||
@$(missing) bison $< $@
|
||||
endif
|
||||
@ -43,7 +37,7 @@ else
|
||||
@$(missing) flex $< $@
|
||||
endif
|
||||
|
||||
distprep: $(srcdir)/segparse.c $(srcdir)/segparse.h $(srcdir)/segscan.c
|
||||
distprep: $(srcdir)/segparse.c $(srcdir)/segscan.c
|
||||
|
||||
maintainer-clean:
|
||||
rm -f $(srcdir)/segparse.c $(srcdir)/segparse.h $(srcdir)/segscan.c
|
||||
rm -f $(srcdir)/segparse.c $(srcdir)/segscan.c
|
||||
|
Reference in New Issue
Block a user