1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-24 01:29:19 +03:00
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.
This commit is contained in:
Marc G. Fournier
1998-02-28 23:37:10 +00:00
parent bc58c5867d
commit 5b3e78afe3
4 changed files with 72 additions and 49 deletions

View File

@@ -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)