From 4da320616850e466021dfbae96ec3cdf923481b3 Mon Sep 17 00:00:00 2001 From: rhaas Date: Wed, 25 Jul 2012 14:40:13 +0000 Subject: make cleandeps a no-op if build directory does not exist eg. because of a previous realclean git-svn-id: http://svn.cactuscode.org/flesh/trunk@4853 17b73243-c579-4c4c-a9d2-2d5706c11dac --- lib/make/make.configuration | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/make/make.configuration b/lib/make/make.configuration index 9406b2a6..81873574 100644 --- a/lib/make/make.configuration +++ b/lib/make/make.configuration @@ -291,7 +291,9 @@ clean: cleandeps: @echo Deleting all dependency files in $(TOP) - find $(TOP)/build \( -name '*.[d]' -o -name '*.a' \) -exec rm {} \; + if test -d $(TOP)/build; then \ + find $(TOP)/build \( -name '*.[d]' -o -name '*.a' \) -exec rm {} \; ; \ + fi cleanobjs: @echo Deleting all object files in $(TOP) -- cgit v1.2.3