aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/GNUmakefile.in25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/GNUmakefile.in b/src/GNUmakefile.in
index 05bec63798c..dba8ccffba6 100644
--- a/src/GNUmakefile.in
+++ b/src/GNUmakefile.in
@@ -7,7 +7,7 @@
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.5 1997/02/04 09:13:56 scrappy Exp $
+# $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.6 1997/02/19 14:03:28 scrappy Exp $
#
#-------------------------------------------------------------------------
@@ -23,6 +23,28 @@ SPLIT = @split@
ETAGS = @etags@
XARGS = @xargs@
+clean:
+ @if test $(PORTNAME) = UNDEFINED; then \
+ echo You must set the PORTNAME value in Makefile.global before \
+ you can build Postgres. ;\
+ false ;\
+ else true;\
+ fi
+ $(MAKE) -C utils clean
+ $(MAKE) -C backend clean
+ $(MAKE) -C libpq clean
+ifeq ($(HAVE_Cplusplus), true)
+ $(MAKE) -C libpq++ clean
+endif
+ifeq ($(USE_TCL), true)
+ $(MAKE) -C libpgtcl clean
+endif
+ $(MAKE) -C bin clean
+ifneq ($(wildcard man), )
+ $(MAKE) -C man clean
+endif
+ rm -f Makefile.global include/config.h GNUmakefile
+
.DEFAULT all:
@if test $(PORTNAME) = UNDEFINED; then \
echo You must set the PORTNAME value in Makefile.global before \
@@ -63,3 +85,4 @@ BACKUP:
.PHONY: TAGS
.PHONY: BACKUP
+