Add a clean target so that the root directory gets cleared of all
the "configure" related files on a make clean
This commit is contained in:
parent
2407a0473a
commit
d250ead654
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user