Browse Source

Improve the target 'all'

No more plugin stuff creeping into core.
Loïc Hoguin 10 years ago
parent
commit
098aa65854
2 changed files with 10 additions and 10 deletions
  1. 5 5
      core/core.mk
  2. 5 5
      erlang.mk

+ 5 - 5
core/core.mk

@@ -38,13 +38,13 @@ ifneq ($(words $(MAKECMDGOALS)),1)
 .NOTPARALLEL:
 endif
 
-all::
-	@$(MAKE) --no-print-directory deps
+all:: deps
 	@$(MAKE) --no-print-directory app
-# @todo Plugin stuff creeping inside Core, not good.
-ifneq ($(wildcard $(RELX_CONFIG)),)
 	@$(MAKE) --no-print-directory rel
-endif
+
+# Noop to avoid a Make warning when there's nothing to do.
+rel::
+	@echo -n
 
 clean::
 	$(gen_verbose) rm -f erl_crash.dump

+ 5 - 5
erlang.mk

@@ -38,13 +38,13 @@ ifneq ($(words $(MAKECMDGOALS)),1)
 .NOTPARALLEL:
 endif
 
-all::
-	@$(MAKE) --no-print-directory deps
+all:: deps
 	@$(MAKE) --no-print-directory app
-# @todo Plugin stuff creeping inside Core, not good.
-ifneq ($(wildcard $(RELX_CONFIG)),)
 	@$(MAKE) --no-print-directory rel
-endif
+
+# Noop to avoid a Make warning when there's nothing to do.
+rel::
+	@echo -n
 
 clean::
 	$(gen_verbose) rm -f erl_crash.dump