Commit d250ead6 authored by Marc G. Fournier's avatar Marc G. Fournier

Add a clean target so that the root directory gets cleared of all

the "configure" related files on a make clean
parent 2407a047
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # 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@ ...@@ -23,6 +23,28 @@ SPLIT = @split@
ETAGS = @etags@ ETAGS = @etags@
XARGS = @xargs@ 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: .DEFAULT all:
@if test $(PORTNAME) = UNDEFINED; then \ @if test $(PORTNAME) = UNDEFINED; then \
echo You must set the PORTNAME value in Makefile.global before \ echo You must set the PORTNAME value in Makefile.global before \
...@@ -63,3 +85,4 @@ BACKUP: ...@@ -63,3 +85,4 @@ BACKUP:
.PHONY: TAGS .PHONY: TAGS
.PHONY: BACKUP .PHONY: BACKUP
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment