aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-12-07 12:19:19 +0100
committerLoïc Hoguin <[email protected]>2018-12-07 12:19:19 +0100
commit754edcb24d4ef6977848e64f6758f43769adea86 (patch)
tree1207a407e1bc7ea7ff58fa773a5b0fe27bdcf171 /plugins
parente1d2a826433a523a40c2e6f1e8eeabe96892b3a2 (diff)
downloaderlang.mk-754edcb24d4ef6977848e64f6758f43769adea86.tar.gz
erlang.mk-754edcb24d4ef6977848e64f6758f43769adea86.tar.bz2
erlang.mk-754edcb24d4ef6977848e64f6758f43769adea86.zip
Fix distclean of cover dirs when they are the same
Diffstat (limited to 'plugins')
-rw-r--r--plugins/cover.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/cover.mk b/plugins/cover.mk
index 04ea657..a850335 100644
--- a/plugins/cover.mk
+++ b/plugins/cover.mk
@@ -117,7 +117,9 @@ ifneq ($(COVER_REPORT_DIR),)
cover-report-clean:
$(gen_verbose) rm -rf $(COVER_REPORT_DIR)
+ifneq ($(COVER_REPORT_DIR),$(COVER_DATA_DIR))
$(if $(shell ls -A $(COVER_DATA_DIR)/),,$(verbose) rmdir $(COVER_DATA_DIR))
+endif
ifeq ($(COVERDATA),)
cover-report: