Browse Source

Don't download relx every build

Loïc Hoguin 10 years ago
parent
commit
a342fa9984
2 changed files with 10 additions and 4 deletions
  1. 5 2
      erlang.mk
  2. 5 2
      plugins/relx.mk

+ 5 - 2
erlang.mk

@@ -702,7 +702,7 @@ endif
 rel:: distclean-rel $(RELX)
 rel:: distclean-rel $(RELX)
 	@$(RELX) -c $(RELX_CONFIG) $(RELX_OPTS)
 	@$(RELX) -c $(RELX_CONFIG) $(RELX_OPTS)
 
 
-distclean:: distclean-rel
+distclean:: distclean-rel distclean-relx
 
 
 # Plugin-specific targets.
 # Plugin-specific targets.
 
 
@@ -715,6 +715,9 @@ $(RELX):
 	@$(call relx_fetch)
 	@$(call relx_fetch)
 
 
 distclean-rel:
 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
 endif

+ 5 - 2
plugins/relx.mk

@@ -25,7 +25,7 @@ endif
 rel:: distclean-rel $(RELX)
 rel:: distclean-rel $(RELX)
 	@$(RELX) -c $(RELX_CONFIG) $(RELX_OPTS)
 	@$(RELX) -c $(RELX_CONFIG) $(RELX_OPTS)
 
 
-distclean:: distclean-rel
+distclean:: distclean-rel distclean-relx
 
 
 # Plugin-specific targets.
 # Plugin-specific targets.
 
 
@@ -38,6 +38,9 @@ $(RELX):
 	@$(call relx_fetch)
 	@$(call relx_fetch)
 
 
 distclean-rel:
 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
 endif