head	1.22;
access;
symbols
	REL9_0_0:1.22
	REL9_1_ALPHA1:1.22
	REL9_0_RC1:1.22
	REL9_0_BETA4:1.22
	REL9_0_STABLE:1.22.0.10
	REL9_0_BETA3:1.22
	REL9_0_BETA2:1.22
	REL7_4_29:1.10
	REL8_0_25:1.12
	REL8_1_21:1.14
	REL8_2_17:1.17
	REL8_3_11:1.20
	REL8_4_4:1.21
	REL9_0_BETA1:1.22
	REL9_0_ALPHA5_BRANCH:1.22.0.8
	REL9_0_ALPHA5:1.22
	REL7_4_28:1.10
	REL8_0_24:1.12
	REL8_1_20:1.14
	REL8_2_16:1.17
	REL8_3_10:1.20
	REL8_4_3:1.21
	REL9_0_ALPHA4:1.22
	REL9_0_ALPHA4_BRANCH:1.22.0.6
	REL8_5_ALPHA3:1.22
	REL8_5_ALPHA3_BRANCH:1.22.0.4
	REL7_4_27:1.10
	REL8_0_23:1.12
	REL8_1_19:1.14
	REL8_2_15:1.17
	REL8_3_9:1.20
	REL8_4_2:1.21
	REL8_5_ALPHA2:1.22
	REL8_5_ALPHA2_BRANCH:1.22.0.2
	REL7_4_26:1.10
	REL8_0_22:1.12
	REL8_1_18:1.14
	REL8_2_14:1.17
	REL8_3_8:1.20
	REL8_4_1:1.21
	REL8_5_ALPHA1:1.21
	REL8_5_ALPHA1_BRANCH:1.21.0.4
	REL8_4_STABLE:1.21.0.2
	REL8_4_0:1.21
	REL8_4_RC2:1.21
	REL8_4_RC1:1.21
	REL8_4_BETA2:1.21
	REL8_4_BETA1:1.21
	REL7_4_25:1.10
	REL8_0_21:1.12
	REL8_1_17:1.14
	REL8_2_13:1.17
	REL8_3_7:1.20
	REL7_4_24:1.10
	REL8_0_20:1.12
	REL8_1_16:1.14
	REL8_2_12:1.17
	REL8_3_6:1.20
	REL7_4_23:1.10
	REL8_0_19:1.12
	REL8_1_15:1.14
	REL8_2_11:1.17
	REL8_3_5:1.20
	REL7_4_22:1.10
	REL8_0_18:1.12
	REL8_1_14:1.14
	REL8_2_10:1.17
	REL8_3_4:1.20
	REL7_4_21:1.10
	REL8_0_17:1.12
	REL8_1_13:1.14
	REL8_2_9:1.17
	REL8_3_3:1.20
	REL7_4_20:1.10
	REL8_0_16:1.12
	REL8_1_12:1.14
	REL8_2_8:1.17
	REL8_3_2:1.20
	REL8_2_7:1.17
	REL8_3_1:1.20
	REL8_3_STABLE:1.20.0.2
	REL8_3_0:1.20
	REL8_3_RC2:1.20
	REL7_3_21:1.7.2.1
	REL7_4_19:1.10
	REL8_0_15:1.12
	REL8_1_11:1.14
	REL8_2_6:1.17
	REL8_3_RC1:1.20
	REL8_3_BETA4:1.20
	REL8_3_BETA3:1.20
	REL8_3_BETA2:1.19
	REL8_3_BETA1:1.19
	REL7_3_20:1.7.2.1
	REL7_4_18:1.10
	REL8_0_14:1.12
	REL8_1_10:1.14
	REL8_2_5:1.17
	REL7_3_19:1.7.2.1
	REL7_4_17:1.10
	REL8_0_13:1.12
	REL8_1_9:1.14
	REL8_2_4:1.17
	REL8_0_12:1.12
	REL8_1_8:1.14
	REL8_2_3:1.17
	REL7_3_18:1.7.2.1
	REL7_4_16:1.10
	REL8_0_11:1.12
	REL8_1_7:1.14
	REL8_2_2:1.17
	REL8_0_10:1.12
	REL8_1_6:1.14
	REL8_2_1:1.17
	REL7_4_15:1.10
	REL7_3_17:1.7.2.1
	REL8_2_STABLE:1.17.0.2
	REL8_2_0:1.17
	REL8_2_RC1:1.17
	REL8_2_BETA3:1.17
	REL8_2_BETA2:1.17
	REL8_1_5:1.14
	REL8_0_9:1.12
	REL7_4_14:1.10
	REL7_3_16:1.7.2.1
	REL8_2_BETA1:1.17
	REL7_3_15:1.7.2.1
	REL7_4_13:1.10
	REL8_0_8:1.12
	REL8_1_4:1.14
	REL7_3_14:1.7.2.1
	REL7_4_12:1.10
	REL8_0_7:1.12
	REL8_1_3:1.14
	REL7_3_13:1.7.2.1
	REL7_4_11:1.10
	REL8_0_6:1.12
	REL8_1_2:1.14
	REL7_3_12:1.7.2.1
	REL7_4_10:1.10
	REL8_0_5:1.12
	REL8_1_1:1.14
	REL8_1_STABLE:1.14.0.2
	REL8_1_0:1.14
	REL8_1_0RC1:1.14
	REL8_1_0BETA4:1.14
	REL8_1_0BETA3:1.13
	REL7_3_11:1.7.2.1
	REL7_4_9:1.10
	REL8_0_4:1.12
	REL8_1_0BETA2:1.12
	REL8_1_0BETA1:1.12
	REL7_2_8:1.6
	REL7_3_10:1.7.2.1
	REL7_4_8:1.10
	REL8_0_3:1.12
	REL8_0_2:1.12
	REL7_2_7:1.6
	REL7_3_9:1.7.2.1
	REL7_4_7:1.10
	REL8_0_1:1.12
	REL8_0_STABLE:1.12.0.4
	REL8_0_0:1.12.0.2
	REL8_0_0RC5:1.12
	REL8_0_0RC4:1.12
	REL8_0_0RC3:1.12
	REL8_0_0RC2:1.12
	REL8_0_0RC1:1.12
	REL8_0_0BETA5:1.12
	REL8_0_0BETA4:1.12
	REL7_4_6:1.10
	REL7_3_8:1.7.2.1
	REL7_2_6:1.6
	REL8_0_0BETA3:1.12
	REL8_0_0BETA2:1.12
	REL7_2_5:1.6
	REL7_4_5:1.10
	REL7_3_7:1.7.2.1
	REL7_4_4:1.10
	REL8_0_0BETA1:1.11
	REL7_4_3:1.10
	REL7_4_2:1.10
	REL7_3_6:1.7.2.1
	REL7_4_1:1.10
	REL7_3_5:1.7.2.1
	REL7_4:1.10
	REL7_4_RC2:1.10
	REL7_4_STABLE:1.10.0.2
	REL7_4_RC1:1.10
	REL7_4_BETA5:1.10
	REL7_4_BETA4:1.10
	REL7_4_BETA3:1.10
	REL7_4_BETA2:1.9
	WIN32_DEV:1.9.0.2
	REL7_4_BETA1:1.9
	REL7_3_4:1.7.2.1
	REL7_3_2:1.7.2.1
	REL7_2_4:1.6
	REL7_3_STABLE:1.7.0.2
	REL7_2_3:1.6
	REL7_2_STABLE:1.6.0.2
	REL7_2:1.6
	REL7_2_RC2:1.6
	REL7_2_RC1:1.6
	REL7_2_BETA5:1.6
	REL7_2_BETA4:1.6
	REL7_2_BETA3:1.6
	REL7_2_BETA2:1.5
	REL7_2_BETA1:1.5
	REL7_1_2:1.3
	REL7_1_STABLE:1.3.0.2
	REL7_1:1.3
	REL7_1_BETA3:1.1
	REL7_1_BETA2:1.1;
locks; strict;
comment	@# @;


1.22
date	2009.08.28.20.26.18;	author petere;	state Exp;
branches;
next	1.21;

1.21
date	2008.08.29.13.02.32;	author petere;	state Exp;
branches;
next	1.20;

1.20
date	2007.11.10.23.59.51;	author momjian;	state Exp;
branches;
next	1.19;

1.19
date	2007.06.26.22.05.03;	author tgl;	state Exp;
branches;
next	1.18;

1.18
date	2007.02.09.17.24.33;	author petere;	state Exp;
branches;
next	1.17;

1.17
date	2006.04.03.18.47.41;	author petere;	state Exp;
branches;
next	1.16;

1.16
date	2006.03.07.01.03.12;	author tgl;	state Exp;
branches;
next	1.15;

1.15
date	2006.02.27.12.54.39;	author petere;	state Exp;
branches;
next	1.14;

1.14
date	2005.10.18.01.30.48;	author tgl;	state Exp;
branches;
next	1.13;

1.13
date	2005.09.27.17.13.09;	author tgl;	state Exp;
branches;
next	1.12;

1.12
date	2004.08.20.20.13.07;	author momjian;	state Exp;
branches;
next	1.11;

1.11
date	2003.11.29.19.51.35;	author pgsql;	state Exp;
branches;
next	1.10;

1.10
date	2003.09.14.02.18.49;	author tgl;	state Exp;
branches;
next	1.9;

1.9
date	2003.05.14.03.27.22;	author tgl;	state Exp;
branches;
next	1.8;

1.8
date	2003.01.31.20.58.00;	author tgl;	state Exp;
branches;
next	1.7;

1.7
date	2002.11.01.22.52.33;	author tgl;	state Exp;
branches
	1.7.2.1;
next	1.6;

1.6
date	2001.11.16.16.32.33;	author petere;	state Exp;
branches
	1.6.2.1;
next	1.5;

1.5
date	2001.09.06.10.49.30;	author petere;	state Exp;
branches;
next	1.4;

1.4
date	2001.06.18.21.38.02;	author momjian;	state Exp;
branches;
next	1.3;

1.3
date	2001.02.20.19.20.28;	author petere;	state Exp;
branches;
next	1.2;

1.2
date	2001.02.10.22.31.42;	author petere;	state Exp;
branches;
next	1.1;

1.1
date	2000.12.11.20.40.33;	author tgl;	state Exp;
branches;
next	;

1.6.2.1
date	2005.07.16.19.48.15;	author tgl;	state Exp;
branches;
next	;

1.7.2.1
date	2003.01.31.20.58.28;	author tgl;	state Exp;
branches;
next	;


desc
@@


1.22
log
@Derived files that are shipped in the distribution used to be built in the
source directory even for out-of-tree builds.  They are now alsl built in
the build tree.  This should be more convenient for certain developers'
workflows, and shouldn't really break anything else.
@
text
@# $PostgreSQL: pgsql/contrib/seg/Makefile,v 1.21 2008/08/29 13:02:32 petere Exp $

MODULE_big = seg
OBJS = seg.o segparse.o
DATA_built = seg.sql
DATA = uninstall_seg.sql
REGRESS = seg

EXTRA_CLEAN = y.tab.c y.tab.h

ifdef USE_PGXS
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
else
subdir = contrib/seg
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif


# segscan is compiled as part of segparse
segparse.o: segscan.c

segparse.c: segparse.y
ifdef BISON
	$(BISON) $(BISONFLAGS) -o $@@ $<
else
	@@$(missing) bison $< $@@
endif

segscan.c: segscan.l
ifdef FLEX
	$(FLEX) $(FLEXFLAGS) -o'$@@' $<
else
	@@$(missing) flex $< $@@
endif

distprep: segparse.c segscan.c

maintainer-clean:
	rm -f segparse.c segscan.c
@


1.21
log
@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.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/contrib/seg/Makefile,v 1.20 2007/11/10 23:59:51 momjian Exp $
d24 1
a24 1
segparse.o: $(srcdir)/segscan.c
d26 1
a26 1
$(srcdir)/segparse.c: segparse.y
d33 1
a33 1
$(srcdir)/segscan.c: segscan.l
d40 1
a40 1
distprep: $(srcdir)/segparse.c $(srcdir)/segscan.c
d43 1
a43 1
	rm -f $(srcdir)/segparse.c $(srcdir)/segscan.c
@


1.20
log
@Remove references to READMEs from /contrib Makefiles.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/contrib/seg/Makefile,v 1.19 2007/06/26 22:05:03 tgl Exp $
d26 3
a28 9
# 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
d40 1
a40 1
distprep: $(srcdir)/segparse.c $(srcdir)/segparse.h $(srcdir)/segscan.c
d43 1
a43 1
	rm -f $(srcdir)/segparse.c $(srcdir)/segparse.h $(srcdir)/segscan.c
@


1.19
log
@Fix PGXS conventions so that extensions can be built against Postgres
installations whose pg_config program does not appear first in the PATH.
Per gripe from Eddie Stanley and subsequent discussions with Fabien Coelho
and others.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/contrib/seg/Makefile,v 1.18 2007/02/09 17:24:33 petere Exp $
a6 1
DOCS = README.seg
@


1.18
log
@Remove useless CPPFLAGS.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/contrib/seg/Makefile,v 1.17 2006/04/03 18:47:41 petere Exp $
d13 2
a14 1
PGXS := $(shell pg_config --pgxs)
@


1.17
log
@Put flex'ed and bison'ed files in contrib in the distribution tarball, as
is done for the analogous files in the main distribution.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/contrib/seg/Makefile,v 1.16 2006/03/07 01:03:12 tgl Exp $
a11 2
PG_CPPFLAGS = -I.

@


1.16
log
@Make all our flex and bison files use %option prefix or %name-prefix
(respectively) to rename yylex and related symbols.  Some were doing
it this way already, while others used not-too-reliable sed hacks in
the Makefiles.  It's all nice and consistent now.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/contrib/seg/Makefile,v 1.15 2006/02/27 12:54:39 petere Exp $
d10 1
a10 1
EXTRA_CLEAN = segparse.c segparse.h segscan.c y.tab.c y.tab.h
d26 1
a26 1
segparse.o: segscan.c
d30 1
a30 1
segparse.c: segparse.h ;
d32 1
a32 1
segparse.h: segparse.y
d35 2
a36 2
	mv -f y.tab.c segparse.c
	mv -f y.tab.h segparse.h
d41 1
a41 1
segscan.c: segscan.l
d47 5
@


1.15
log
@contrib uninstall scripts

by David Fetter
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/contrib/seg/Makefile,v 1.14 2005/10/18 01:30:48 tgl Exp $
d24 1
d28 2
d34 1
a34 1
	$(YACC) -d $(YFLAGS) -p seg_yy $<
@


1.14
log
@Fix several contrib makefiles that failed in VPATH builds, particularly
when not using gcc (which has slightly nonstandard inclusion rules).
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/contrib/seg/Makefile,v 1.13 2005/09/27 17:13:09 tgl Exp $
d6 1
@


1.13
log
@PGXS should be set with := not =, as specified in the documentation,
to avoid useless multiple executions of pg_config.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/contrib/seg/Makefile,v 1.12 2004/08/20 20:13:07 momjian Exp $
d11 2
@


1.12
log
@> Please find enclose a submission to fix these problems.
>
> The patch adds missing the "libpgport.a" file to the installation under
> "install-all-headers". It is needed by some contribs. I install the
> library in "pkglibdir", but I was wondering whether it should be "libdir"?
> I was wondering also whether it would make sense to have a "libpgport.so"?
>
> It fixes various macros which are used by contrib makefiles, especially
> libpq_*dir and LDFLAGS when used under PGXS. It seems to me that they are
> needed to
>
> It adds the ability to test and use PGXS with contribs, with "make
> USE_PGXS=1". Without the macro, this is exactly as before, there should be
> no difference, esp. wrt the vpath feature that seemed broken by previous
> submission. So it should not harm anybody, and it is useful at least to me.
>
> It fixes some inconsistencies in various contrib makefiles
> (useless override, ":=" instead of "=").

Fabien COELHO
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql-server/contrib/seg/Makefile,v 1.11 2003/11/29 19:51:35 pgsql Exp $
d12 1
a12 1
PGXS = $(shell pg_config --pgxs)
@


1.11
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d1 1
a1 5
# $PostgreSQL: /cvsroot/pgsql-server/contrib/seg/Makefile,v 1.10 2003/09/14 02:18:49 tgl Exp $

subdir = contrib/seg
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
d9 11
a40 5

EXTRA_CLEAN = segparse.c segparse.h segscan.c y.tab.c y.tab.h


include $(top_srcdir)/contrib/contrib-global.mk
@


1.10
log
@Make contrib/seg work with flex 2.5.31.  Fix it up to have a real
btree operator class, too, since in PG 7.4 you can't GROUP without one.
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql-server/contrib/seg/Makefile,v 1.9 2003/05/14 03:27:22 tgl Exp $
@


1.9
log
@Fix various recent build and regression-test problems in contrib/.
Includes fixes from Joe Conway.
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql-server/contrib/seg/Makefile,v 1.8 2003/01/31 20:58:00 tgl Exp $
d8 1
a8 1
OBJS = seg.o segparse.o buffer.o
d30 1
a30 1
	$(FLEX) $(FLEXFLAGS) -Pseg_yy -o'$@@' $<
@


1.8
log
@Tweak bison build rules so that we get the same error messages from
bison 1.875 and later as we did from earlier bison releases.  Eventually
we will probably want to adopt the newer message spelling ... but not yet.
Per recent discussion on pgpatches.
Note: I didn't change the build rules for bootstrap, ecpg, or plpgsql
grammars, since these do not affect regression test results.
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql-server/contrib/seg/Makefile,v 1.7 2002/11/01 22:52:33 tgl Exp $
a18 5
# The sed hack is so that we can get the same error messages with
# bison 1.875 and later as we did with earlier bisons.  Eventually,
# I suppose, we should re-standardize on "syntax error" --- in which
# case flip the sed translation, but don't remove it.

d22 1
a22 1
	sed -e 's/"syntax error/"parse error/' < y.tab.c > segparse.c
a23 1
	rm -f y.tab.c
@


1.7
log
@Arrange to compile flex output files as inclusions into other files
(usually bison output files), not as standalone files.  This hack
works around flex's insistence on including <stdio.h> before we are
able to include postgres.h; postgres.h will already be read before
the compiler starts to read the flex output file.  Needed for largefile
support on some platforms.
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql-server/contrib/seg/Makefile,v 1.6 2001/11/16 16:32:33 petere Exp $
d19 5
d27 1
a27 1
	mv -f y.tab.c segparse.c
d29 1
@


1.7.2.1
log
@Tweak bison build rules so that we get the same error messages from
bison 1.875 and later as we did from earlier bison releases.  Eventually
we will probably want to adopt the newer message spelling ... but not yet.
Per recent discussion on pgpatches.
Note: I didn't change the build rules for bootstrap, ecpg, or plpgsql
grammars, since these do not affect regression test results.
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql-server/contrib/seg/Makefile,v 1.7 2002/11/01 22:52:33 tgl Exp $
a18 5
# The sed hack is so that we can get the same error messages with
# bison 1.875 and later as we did with earlier bisons.  Eventually,
# I suppose, we should re-standardize on "syntax error" --- in which
# case flip the sed translation, but don't remove it.

d22 1
a22 1
	sed -e 's/"syntax error/"parse error/' < y.tab.c > segparse.c
a23 1
	rm -f y.tab.c
@


1.6
log
@Make the yacc rules safe for parallel make.  See discussion on pgsql-patches
and comment in src/backend/parser/Makefile for the technical details.
@
text
@d1 1
a1 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/contrib/seg/Makefile,v 1.5 2001/09/06 10:49:30 petere Exp $
d8 1
a8 1
OBJS = seg.o segparse.o segscan.o buffer.o
d13 3
@


1.6.2.1
log
@Back-patch into 7.2 branch the 7.3 changes that made contrib/seg
error messages reasonably independent of the bison version used to
build segparse.c.   Needed to get this branch passing on buildfarm.
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql/contrib/seg/Makefile,v 1.6 2001/11/16 16:32:33 petere Exp $
a15 5
# The sed hack is so that we can get the same error messages with
# bison 1.875 and later as we did with earlier bisons.  Eventually,
# I suppose, we should re-standardize on "syntax error" --- in which
# case flip the sed translation, but don't remove it.

d19 1
a19 1
	sed -e 's/"syntax error/"parse error/' < y.tab.c > segparse.c
a20 1
	rm -f y.tab.c
@


1.5
log
@To fix the perpetually broken makefiles in the contrib tree, I have
written a generic framework of rules that the contrib makefiles can
use instead of writing their own each time.  You only need to set a few
variables and off you go.
@
text
@d1 1
a1 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/contrib/seg/Makefile,v 1.4 2001/06/18 21:38:02 momjian Exp $
d14 3
a16 1
segparse.c segparse.h: segparse.y
@


1.4
log
@The attached patch enables the contrib subtree to build cleanly under
Cygwin with the possible exception of mSQL-interface.  Since I don't
have mSQL installed, I skipped this tool.

Except for dealing with a missing getopt.h (oid2name) and HUGE (seg),
the bulk of the patch uses the standard PostgreSQL approach to deal with
Windows DLL issues.

I tested the build aspect of this patch under Cygwin and Linux without
any ill affects.  Note that I did not actually attempt to test the code
for functionality.

The procedure to apply the patch is as follows:

    $ # save the attachment as /tmp/contrib.patch
    $ # change directory to the top of the PostgreSQL source tree
    $ patch -p0 </tmp/contrib.patch

Jason
@
text
@d1 1
a1 3
#
# $Header: /home/projects/pgsql/cvsroot/pgsql/contrib/seg/Makefile,v 1.3 2001/02/20 19:20:28 petere Exp $
#
d7 5
a11 17
# override libdir to install shlib in contrib not main directory
libdir := $(libdir)/contrib

# shared library parameters
NAME= seg
SO_MAJOR_VERSION= 1
SO_MINOR_VERSION= 0

override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
override DLLLIBS := $(BE_DLLLIBS) $(DLLLIBS)

OBJS= seg.o segparse.o segscan.o buffer.o

all: all-lib $(NAME).sql

# Shared library stuff
include $(top_srcdir)/src/Makefile.shlib
d30 1
a30 38
$(NAME).sql: $(NAME).sql.in
	sed -e 's:MODULE_PATHNAME:$(libdir)/$(shlib):g' < $< > $@@

.PHONY: submake
submake:
	$(MAKE) -C $(top_builddir)/src/test/regress pg_regress

# against installed postmaster
installcheck: submake
	$(top_builddir)/src/test/regress/pg_regress seg

# in-tree test doesn't work yet (no way to install my shared library)
#check: all submake
#	$(top_builddir)/src/test/regress/pg_regress --temp-install \
#	  --top-builddir=$(top_builddir) seg
check:
	@@echo "'make check' is not supported."
	@@echo "Do 'make install', then 'make installcheck' instead."

install: all installdirs install-lib
	$(INSTALL_DATA) $(srcdir)/README.$(NAME)  $(docdir)/contrib
	$(INSTALL_DATA) $(NAME).sql $(datadir)/contrib

installdirs:
	$(mkinstalldirs) $(docdir)/contrib $(datadir)/contrib $(libdir)

uninstall: uninstall-lib
	rm -f $(docdir)/contrib/README.$(NAME) $(datadir)/contrib/$(NAME).sql

clean distclean maintainer-clean: clean-lib
	rm -f segparse.c segparse.h segscan.c
	rm -f y.tab.c y.tab.h $(OBJS) $(NAME).sql
# things created by various check targets
	rm -rf results tmp_check log
	rm -f regression.diffs regression.out regress.out run_check.out
ifeq ($(PORTNAME), win)
	rm -f regress.def
endif
a31 2
depend dep:
	$(CC) -MM $(CFLAGS) *.c >depend
d33 1
a33 3
ifeq (depend,$(wildcard depend))
include depend
endif
@


1.3
log
@Make sure -L and -I's for our source tree are always before system include
or library directories on the command line.
@
text
@d2 1
a2 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/contrib/seg/Makefile,v 1.2 2001/02/10 22:31:42 petere Exp $
d18 1
@


1.2
log
@Only look for bison as YACC; other yaccs need to be selected explicitly.
When no suitable YACC is configured, supply useful informational messages
to users.  (Same way flex has been handled for a while.)
@
text
@d2 1
a2 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/contrib/seg/Makefile,v 1.1 2000/12/11 20:40:33 tgl Exp $
d17 1
a17 1
override CPPFLAGS += -I$(srcdir)
@


1.1
log
@Gene Selkov's SEG datatype (GiST example code)
@
text
@d2 1
a2 1
# $Header$
d28 1
d32 3
@
