aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1f3e270..bc3ee6d 100644
--- a/Makefile
+++ b/Makefile
@@ -50,9 +50,11 @@ ifneq ($(BUILDDIR),$(CURDIR))
endif
endif
endif
- find $(BUILDDIR)/ -xdev \
- '(' -name '*.[ao]' -o -name '.*.c.dep' ')' \
- -exec rm -f {} +
+ @if test -d "$(BUILDDIR)/"; then \
+ find $(BUILDDIR)/ -xdev \
+ '(' -name '*.[ao]' -o -name '.*.c.dep' ')' \
+ -exec rm -f {} + ; \
+ fi
rm -f $(BUILDDIR)/include/version.h
$(MAKE) -C $(TESTS) clean