]> granicus.if.org Git - postgresql/commitdiff
Add a clean target so that the root directory gets cleared of all
authorMarc G. Fournier <scrappy@hub.org>
Wed, 19 Feb 1997 14:03:28 +0000 (14:03 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Wed, 19 Feb 1997 14:03:28 +0000 (14:03 +0000)
the "configure" related files on a make clean

src/GNUmakefile.in

index 05bec63798cc20de57ac21974ccdad1386601d3f..dba8ccffba6aee8724859d83aa532cb75f667558 100644 (file)
@@ -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
+