From 5b3e78afe3b207e5db91853f03a90f37e0fdb35f Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Sat, 28 Feb 1998 23:37:10 +0000 Subject: From: Darren King Seem to remember someone posting to one of the lists a while back that the tutorial code wouldn't compile and/or run. Found four problems with it that will let it run. 1. Tutorial makefile had a recursive use of DLOBJS. 2. Some tutorial needed semi-colons added to many statements. 3. Complex tutorial didn't clean up after itself. 4. Advanced had a time-travel example. Commented it out and put a line pointing the user to contrib/spi/README. --- src/tutorial/Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/tutorial/Makefile') diff --git a/src/tutorial/Makefile b/src/tutorial/Makefile index c575d040b49..5302c9cc39d 100644 --- a/src/tutorial/Makefile +++ b/src/tutorial/Makefile @@ -4,7 +4,7 @@ # Makefile for tutorial # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/tutorial/Makefile,v 1.6 1998/01/04 19:12:55 scrappy Exp $ +# $Header: /cvsroot/pgsql/src/tutorial/Makefile,v 1.7 1998/02/28 23:37:07 scrappy Exp $ # #------------------------------------------------------------------------- @@ -28,11 +28,14 @@ endif DLOBJS= complex$(DLSUFFIX) funcs$(DLSUFFIX) QUERIES= advanced.sql basics.sql complex.sql funcs.sql syscat.sql + +INFILES= $(DLOBJS) + # # plus exports files # ifdef EXPSUFF -DLOBJS+= $(DLOBJS:.o=$(EXPSUFF)) +INFILES+= $(DLOBJS:.o=$(EXPSUFF)) endif all: $(QUERIES) @@ -48,13 +51,12 @@ all: $(QUERIES) -e "s:_DLSUFFIX_:$(DLSUFFIX):g" \ -e "s/_USER_/$$USER/g" < $< > $@ -funcs.sql:: $(DLOBJS) +funcs.sql: $(INFILES) -$(DLOBJS): +$(INFILES): $(MAKE) -C C-code $@ cp C-code/$@ . clean: $(MAKE) -C C-code clean - rm -f $(QUERIES) - rm -f $(DLOBJS) + rm -f $(QUERIES) $(INFILES) -- cgit v1.2.3