diff options
| author | Marc G. Fournier <scrappy@hub.org> | 1998-02-28 23:37:10 +0000 |
|---|---|---|
| committer | Marc G. Fournier <scrappy@hub.org> | 1998-02-28 23:37:10 +0000 |
| commit | 5b3e78afe3b207e5db91853f03a90f37e0fdb35f (patch) | |
| tree | 9904735ba334a92da8f276e042cd3be7d1c7b53c /src/tutorial/Makefile | |
| parent | bc58c5867df7d9ab3277e0ae1399d5dabb0308a8 (diff) | |
From: Darren King <darrenk@insightdist.com>
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.
Diffstat (limited to 'src/tutorial/Makefile')
| -rw-r--r-- | src/tutorial/Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
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) |
