head	1.10;
access;
symbols;
locks; strict;
comment	@# @;


1.10
date	94.04.04.08.46.11;	author aoki;	state Exp;
branches;
next	1.9;

1.9
date	93.09.28.02.40.08;	author aoki;	state Exp;
branches;
next	1.8;

1.8
date	93.07.30.09.41.08;	author aoki;	state Exp;
branches;
next	1.7;

1.7
date	93.07.30.09.22.24;	author aoki;	state Exp;
branches;
next	1.6;

1.6
date	93.07.28.23.41.43;	author aoki;	state Exp;
branches;
next	1.5;

1.5
date	93.01.27.00.33.59;	author marc;	state Exp;
branches;
next	1.4;

1.4
date	93.01.09.01.34.03;	author aoki;	state Exp;
branches;
next	1.3;

1.3
date	92.12.30.00.04.42;	author marc;	state Exp;
branches;
next	1.2;

1.2
date	92.12.19.01.06.03;	author mao;	state Exp;
branches;
next	1.1;

1.1
date	92.12.19.01.04.05;	author mao;	state Exp;
branches;
next	;


desc
@makefile
@


1.10
log
@get rid of extra clutter
@
text
@#
# $Header: /usr/local/devel/postgres/src/regress/demo/RCS/Makefile,v 1.9 1993/09/28 02:40:08 aoki Exp aoki $
#

.include <postgres.global.mk>

.include <postgres.prog.mk>

#
# build dynamically-loaded object files
#
DLOBJS= circle.o boxarea.o overpaid.o

#
# ... plus test query inputs
#
CREATEFILES= ${DLOBJS} \
	set-up-1.pq demo.pq

#
# ... plus exports files
#
.if defined(EXPSUFF)
CREATEFILES+= ${DLOBJS:S/.o/${EXPSUFF}/g}
.endif

#
# ... plus shared libraries
#
.if defined(SLSUFF)
.  if (${SLSUFF} != ".o")
CREATEFILES+= ${DLOBJS:S/.o/${SLSUFF}/g}
.    if (${PORTNAME} == "alpha")
CLEANFILES+= so_locations
.    endif
.  endif
.endif

OUTFILES= demo.out
CLEANFILES+= ${CREATEFILES} ${OUTFILES}

demo.pq: ${.CURDIR}/demo_order set-up-1.pq
	cat set-up-1.pq > ${.TARGET}
	C=`pwd`; cd ${.CURDIR}; cat `cat demo_order` >> $$C/${.TARGET}

demo.out: ${CREATEFILES}
	${SHCMD} ${.CURDIR}/wholedemo.sh 2>&1 | tee ${.TARGET}
	@@echo "RESULTS OF DEMO ARE SAVED IN ${MAKEOBJDIR}/demo.out"

#
# prepare to run the test (including clean-up after the last run)
#
all: ${CREATEFILES}
	rm -f ${OUTFILES}

#
# run the test
#
runtest: ${OUTFILES}
@


1.9
log
@aix
@
text
@d2 1
a2 1
# $Header$
d33 3
@


1.8
log
@more shared lib changes
@
text
@d1 4
d9 3
d13 21
a33 4
CREATEFILES= ${DLOBJS} set-up-1.pq demo.pq
.if (${SLSUFF} != ".o")
SLOBJS= ${DLOBJS:S/.o/${SLSUFF}/g}
CREATEFILES+= ${SLOBJS}
d35 1
d47 3
d53 3
@


1.7
log
@changed for generation of shared libraries
@
text
@d7 1
a7 1
.ifdef SLSUFF
@


1.6
log
@MAKEOBJDIR changes
@
text
@d5 6
a10 1
CREATEFILES= circle.o boxarea.o overpaid.o set-up-1.pq demo.pq
@


1.5
log
@Use ${SHCMD} instead of "sh" so we can pass flags (like setting the PATH)
@
text
@d15 1
a15 1
	@@echo "RESULTS OF DEMO ARE SAVED IN obj/demo.out"
@


1.4
log
@*** empty log message ***
@
text
@d14 1
a14 1
	sh ${.CURDIR}/wholedemo.sh 2>&1 | tee ${.TARGET}
@


1.3
log
@make 'runtest' default target
@
text
@a2 3
# Override default target
.MAIN: runtest

d5 7
a11 1
CFLAGS+= -I${.CURDIR}/../../backend
d13 3
a15 3
# XXX do a .if ${PORTNAME} == "ultrix4"
CFLAGS+= -G 0

d17 2
a18 2
CREATEFILES= circle.o boxarea.o overpaid.o set-up-1.pq
CLEANFILES+= ${CREATEFILES}
d20 1
a20 11
set-up-1.pq: set-up-1.temp
	C=`pwd`; echo XX$$C; sed -e "s:_CWD_:$$C:" < ${.CURDIR}/set-up-1.temp > ${.TARGET}

runtest: ${CREATEFILES} demo

demo:
	PATH=${BINDIR}:$$PATH; export PATH; \
	DEMOOBJDIR=`pwd`; export DEMOOBJDIR; \
	cd  ${.CURDIR}; \
	sh wholedemo.sh 2>&1 | tee $$DEMOOBJDIR/demo.out
	@@echo "RESULTS OF DEMO ARE SAVED IN obj/demo.out"
@


1.2
log
@change rundemo to runtests
@
text
@d3 3
@


1.1
log
@Initial revision
@
text
@d17 1
a17 1
rundemo: ${CREATEFILES} demo
@
