diff options
author | rhaas <rhaas@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2012-07-25 14:40:13 +0000 |
---|---|---|
committer | rhaas <rhaas@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2012-07-25 14:40:13 +0000 |
commit | 4da320616850e466021dfbae96ec3cdf923481b3 (patch) | |
tree | c718349e07cd0c0f95566d429ac640dfe0622866 /lib/make | |
parent | 43bf0112eb7d2dde09767a1e4a50de2fa9966e60 (diff) |
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
Diffstat (limited to 'lib/make')
-rw-r--r-- | lib/make/make.configuration | 4 |
1 files changed, 3 insertions, 1 deletions
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) |