head	1.4;
access;
symbols
	REL_0_4:1.1.1.1
	ANDREW_JOLLY:1.1.1;
locks; strict;
comment	@# @;


1.4
date	95.04.08.03.48.34;	author andrew;	state Exp;
branches;
next	1.3;

1.3
date	95.03.22.20.07.12;	author andrew;	state Exp;
branches;
next	1.2;

1.2
date	95.03.21.07.00.19;	author andrew;	state Exp;
branches;
next	1.1;

1.1
date	94.11.07.05.19.58;	author andrew;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	94.11.07.05.19.59;	author andrew;	state Exp;
branches;
next	;


desc
@@


1.4
log
@have install do localobj also
@
text
@#-------------------------------------------------------------------------
#
# Makefile--
#    Makefile for demo
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
#    $Header: /usr/local/devel/pglite/cvs/src/test/demo/Makefile,v 1.3 1995/03/22 20:07:12 andrew Exp $
#
#-------------------------------------------------------------------------

MKDIR=	../../mk
include $(MKDIR)/postgres.mk

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

#
# ... plus test query inputs
#
CREATEFILES= $(DLOBJS:%=$(objdir)/%) set-up-1.sql demo.sql

include $(MKDIR)/postgres.user.mk


OUTFILES= demo.out
CLEANFILES+= $(notdir $(CREATEFILES)) $(OUTFILES)


demo.sql: demo_order set-up-1.sql
	cat $(objdir)/set-up-1.sql `cat demo_order` > $(objdir)/$@@

demo.out: $(CREATEFILES)
	$(SHELL) ./wholedemo.sh 2>&1 | tee $(objdir)/$@@
	@@echo "RESULTS OF DEMO ARE SAVED IN $(objdir)/demo.out"

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

#
# run the test
#
runtest: $(OUTFILES)

#
# installation
#
install: localobj all
@


1.3
log
@fix dependencies
@
text
@d10 1
a10 1
#    $Header: /usr/local/devel/pglite/cvs/src/test/demo/Makefile,v 1.2 1995/03/21 07:00:19 andrew Exp $
d55 1
a55 1
install: all
@


1.2
log
@switch over to gmake
@
text
@d10 1
a10 1
#    $Header: /usr/local/devel/pglite/cvs/src/test/demo/Makefile,v 1.1.1.1 1994/11/07 05:19:59 andrew Exp $
d25 1
a25 1
CREATEFILES= $(DLOBJS) set-up-1.sql demo.sql
d31 1
a31 1
CLEANFILES+= $(CREATEFILES) $(OUTFILES)
d45 1
a45 1
	rm -f $(OUTFILES)
@


1.1
log
@Initial revision
@
text
@d10 1
a10 1
#    $Header: $
d14 2
a15 1
.include <postgres.global.mk>
a16 2
.include <postgres.prog.mk>

d25 1
a25 2
CREATEFILES= ${DLOBJS} \
	set-up-1.pq demo.pq
d27 1
a27 6
#
# ... plus exports files
#
.if defined(EXPSUFF)
CREATEFILES+= ${DLOBJS:S/.o/${EXPSUFF}/g}
.endif
a28 11
#
# ... plus shared libraries
#
.if defined(SLSUFF)
.  if (${SLSUFF} != ".o")
CREATEFILES+= ${DLOBJS:S/.o/${SLSUFF}/g}
.    if (${PORTNAME} == "alpha")
CLEANFILES+= so_locations
.    endif
.  endif
.endif
d31 1
a31 1
CLEANFILES+= ${CREATEFILES} ${OUTFILES}
a32 7
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"
d34 7
d44 2
a45 2
all: ${CREATEFILES}
	rm -f ${OUTFILES}
d50 6
a55 1
runtest: ${OUTFILES}
@


1.1.1.1
log
@Copyright (c) 1994, POSTGRES Lite   Andrew Yu and Jolly Chen
@
text
@@
