Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc G. Fournier1996-07-27 02:04:12 +0000
committerMarc G. Fournier1996-07-27 02:04:12 +0000
commitb141c5a9735de133ba482fb82b5353323e3985d4 (patch)
tree3ec7f4cdbc30413c5da1b9c27b63f4c9ab1a29bd /src/mk/postgres.mk
parent95b6f6ea33e8d53112eac9387a5eb4a883dbd1f8 (diff)
Fix where 'make clean' wipes out everything if no obj directory
exists... Submitted by: Bruce Momjian <maillist@candle.pha.pa.us>
Diffstat (limited to 'src/mk/postgres.mk')
-rw-r--r--src/mk/postgres.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mk/postgres.mk b/src/mk/postgres.mk
index 83e34a8ad37..61e44f51d50 100644
--- a/src/mk/postgres.mk
+++ b/src/mk/postgres.mk
@@ -9,7 +9,7 @@
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/mk/Attic/postgres.mk,v 1.1.1.1 1996/07/09 06:22:19 scrappy Exp $
+# $Header: /cvsroot/pgsql/src/mk/Attic/postgres.mk,v 1.2 1996/07/27 02:04:12 scrappy Exp $
#
#-------------------------------------------------------------------------
@@ -104,7 +104,7 @@ VPATH:= $(CURDIR)/$(objdir)
# clean up the objects and generated files
clean:
- cd $(objdir); rm -f $(CLEANFILES)
+ @if test -d $(objdir); then cd $(objdir); rm -f $(CLEANFILES) ;else true; fi;
# just a matter of personal taste; make sure we do something and don't
# get this message: "gmake[1]: Nothing to be done for 'all'."