aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-09-16 23:51:17 +0200
committerLoïc Hoguin <[email protected]>2017-09-16 23:51:17 +0200
commit79c329aec7518132f0e67d2316998e8feb2a8c5e (patch)
treef28bae3ab34ea78ab5d0559d384a557c3f5e2696 /plugins
parentb0623a2803acb1c59b1bde10343ca9826f67b759 (diff)
downloaderlang.mk-79c329aec7518132f0e67d2316998e8feb2a8c5e.tar.gz
erlang.mk-79c329aec7518132f0e67d2316998e8feb2a8c5e.tar.bz2
erlang.mk-79c329aec7518132f0e67d2316998e8feb2a8c5e.zip
Better implementation of removal of COVER_DATA_DIR if not empty
Diffstat (limited to 'plugins')
-rw-r--r--plugins/cover.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/cover.mk b/plugins/cover.mk
index a14b992..60809a3 100644
--- a/plugins/cover.mk
+++ b/plugins/cover.mk
@@ -81,8 +81,7 @@ ifneq ($(COVER_REPORT_DIR),)
cover-report-clean:
$(gen_verbose) rm -rf $(COVER_REPORT_DIR)
- # Remove the COVER_DATA_DIR only if it is empty.
- -$(verbose) rmdir $(COVER_DATA_DIR)
+ $(if $(shell ls -A $(COVER_DATA_DIR)/),,$(verbose) rmdir $(COVER_DATA_DIR))
ifeq ($(COVERDATA),)
cover-report: