Skip to content

Commit f0cbf62

Browse files
committed
fixup! build: don't clean obj.target directory if it doesn't exist
1 parent b7221e7 commit f0cbf62

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,10 @@ coverage-clean:
241241
$(RM) -r node_modules
242242
$(RM) -r gcovr
243243
$(RM) -r coverage/tmp
244-
$(FIND) out/$(BUILDTYPE)/obj.target \( -name "*.gcda" -o -name "*.gcno" \) \
245-
-type f -exec $(RM) {} \;
244+
@if [ -d "out/Release/obj.target" ]; then \
245+
$(FIND) out/$(BUILDTYPE)/obj.target \( -name "*.gcda" -o -name "*.gcno" \) \
246+
-type f -exec $(RM) {};\
247+
fi
246248

247249
.PHONY: coverage
248250
# Build and test with code coverage reporting. HTML coverage reports will be

0 commit comments

Comments
 (0)