Skip to content

Commit b141c5a

Browse files
committed
Fix where 'make clean' wipes out everything if no obj directory
exists... Submitted by: Bruce Momjian <maillist@candle.pha.pa.us>
1 parent 95b6f6e commit b141c5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mk/postgres.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#
1010
#
1111
# IDENTIFICATION
12-
# $Header: /cvsroot/pgsql/src/mk/Attic/postgres.mk,v 1.1.1.1 1996/07/09 06:22:19 scrappy Exp $
12+
# $Header: /cvsroot/pgsql/src/mk/Attic/postgres.mk,v 1.2 1996/07/27 02:04:12 scrappy Exp $
1313
#
1414
#-------------------------------------------------------------------------
1515

@@ -104,7 +104,7 @@ VPATH:= $(CURDIR)/$(objdir)
104104

105105
# clean up the objects and generated files
106106
clean:
107-
cd $(objdir); rm -f $(CLEANFILES)
107+
@if test -d $(objdir); then cd $(objdir); rm -f $(CLEANFILES) ;else true; fi;
108108

109109
# just a matter of personal taste; make sure we do something and don't
110110
# get this message: "gmake[1]: Nothing to be done for 'all'."

0 commit comments

Comments
 (0)