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:
3
contrib/seg/.cvsignore
Normal file
3
contrib/seg/.cvsignore
Normal file
@ -0,0 +1,3 @@
|
||||
segparse.c
|
||||
segparse.h
|
||||
segscan.c
|
@ -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
|
||||
|
Reference in New Issue
Block a user