GeezerVison is showing github.com — build: don't clean obj.target directory if it doesn't exist · nodejs/node@467ac3a
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: Makefile +7-3Lines changed: 7 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -241,8 +241,10 @@ coverage-clean: |
241 | 241 | $(RM) -r node_modules |
242 | 242 | $(RM) -r gcovr |
243 | 243 | $(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 |
246 | 248 |
|
247 | 249 | .PHONY: coverage |
248 | 250 | # Build and test with code coverage reporting. HTML coverage reports will be |
@@ -266,7 +268,9 @@ coverage-build-js: |
266 | 268 |
|
267 | 269 | .PHONY: coverage-test |
268 | 270 | coverage-test: coverage-build |
269 | | - $(FIND) out/$(BUILDTYPE)/obj.target -name "*.gcda" -type f -exec $(RM) {} \; |
| 271 | + @if [ -d "out/Release/obj.target" ]; then \ |
| 272 | + $(FIND) out/$(BUILDTYPE)/obj.target -name "*.gcda" -type f -exec $(RM) {}; \ |
| 273 | + fi |
270 | 274 | -NODE_V8_COVERAGE=coverage/tmp \ |
271 | 275 | TEST_CI_ARGS="$(TEST_CI_ARGS) --type=coverage" $(MAKE) $(COVTESTS) |
272 | 276 | $(MAKE) coverage-report-js |
|