1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Put flex'ed and bison'ed files in contrib in the distribution tarball, as

is done for the analogous files in the main distribution.
This commit is contained in:
Peter Eisentraut
2006-04-03 18:47:41 +00:00
parent c9a2b6d4ca
commit c8c864c261
6 changed files with 42 additions and 20 deletions

3
contrib/seg/.cvsignore Normal file
View File

@ -0,0 +1,3 @@
segparse.c
segparse.h
segscan.c

View File

@ -1,4 +1,4 @@
# $PostgreSQL: pgsql/contrib/seg/Makefile,v 1.16 2006/03/07 01:03:12 tgl Exp $
# $PostgreSQL: pgsql/contrib/seg/Makefile,v 1.17 2006/04/03 18:47:41 petere Exp $
MODULE_big = seg
OBJS = seg.o segparse.o
@ -7,7 +7,7 @@ DATA = uninstall_seg.sql
DOCS = README.seg
REGRESS = seg
EXTRA_CLEAN = segparse.c segparse.h segscan.c y.tab.c y.tab.h
EXTRA_CLEAN = y.tab.c y.tab.h
PG_CPPFLAGS = -I.
@ -23,24 +23,29 @@ endif
# segscan is compiled as part of segparse
segparse.o: segscan.c
segparse.o: $(srcdir)/segscan.c
# See notes in src/backend/parser/Makefile about the following two rules
segparse.c: segparse.h ;
$(srcdir)/segparse.c: $(srcdir)/segparse.h ;
segparse.h: segparse.y
$(srcdir)/segparse.h: segparse.y
ifdef YACC
$(YACC) -d $(YFLAGS) $<
mv -f y.tab.c segparse.c
mv -f y.tab.h segparse.h
mv -f y.tab.c $(srcdir)/segparse.c
mv -f y.tab.h $(srcdir)/segparse.h
else
@$(missing) bison $< $@
endif
segscan.c: segscan.l
$(srcdir)/segscan.c: segscan.l
ifdef FLEX
$(FLEX) $(FLEXFLAGS) -o'$@' $<
else
@$(missing) flex $< $@
endif
distprep: $(srcdir)/segparse.c $(srcdir)/segparse.h $(srcdir)/segscan.c
maintainer-clean:
rm -f $(srcdir)/segparse.c $(srcdir)/segparse.h $(srcdir)/segscan.c