aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--erlang.mk7
-rw-r--r--plugins/relx.mk7
2 files changed, 10 insertions, 4 deletions
diff --git a/erlang.mk b/erlang.mk
index f37307d..9c25c9b 100644
--- a/erlang.mk
+++ b/erlang.mk
@@ -702,7 +702,7 @@ endif
rel:: distclean-rel $(RELX)
@$(RELX) -c $(RELX_CONFIG) $(RELX_OPTS)
-distclean:: distclean-rel
+distclean:: distclean-rel distclean-relx
# Plugin-specific targets.
@@ -715,6 +715,9 @@ $(RELX):
@$(call relx_fetch)
distclean-rel:
- $(gen_verbose) rm -rf $(RELX) $(RELX_OUTPUT_DIR)
+ $(gen_verbose) rm -rf $(RELX_OUTPUT_DIR)
+
+distclean-relx:
+ $(gen_verbose) rm -rf $(RELX)
endif
diff --git a/plugins/relx.mk b/plugins/relx.mk
index ad8343f..3f7fd87 100644
--- a/plugins/relx.mk
+++ b/plugins/relx.mk
@@ -25,7 +25,7 @@ endif
rel:: distclean-rel $(RELX)
@$(RELX) -c $(RELX_CONFIG) $(RELX_OPTS)
-distclean:: distclean-rel
+distclean:: distclean-rel distclean-relx
# Plugin-specific targets.
@@ -38,6 +38,9 @@ $(RELX):
@$(call relx_fetch)
distclean-rel:
- $(gen_verbose) rm -rf $(RELX) $(RELX_OUTPUT_DIR)
+ $(gen_verbose) rm -rf $(RELX_OUTPUT_DIR)
+
+distclean-relx:
+ $(gen_verbose) rm -rf $(RELX)
endif