Просмотр исходного кода

Merge branch 'deps_app_rel_order' of https://github.com/stolen/erlang.mk

Loïc Hoguin 10 лет назад
Родитель
Сommit
7b22547a43
3 измененных файлов с 6 добавлено и 6 удалено
  1. 2 2
      core/erlc.mk
  2. 3 3
      erlang.mk
  3. 1 1
      plugins/relx.mk

+ 2 - 2
core/erlc.mk

@@ -75,11 +75,11 @@ ebin/$(PROJECT).app:: $(shell find mibs -type f -name \*.mib)
 endif
 
 ebin/$(PROJECT).app:: $(shell find src -type f -name \*.erl) \
-		$(shell find src -type f -name \*.core)
+		$(shell find src -type f -name \*.core) | deps
 	$(if $(strip $?),$(call compile_erl,$?))
 
 ebin/$(PROJECT).app:: $(shell find src -type f -name \*.xrl) \
-		$(shell find src -type f -name \*.yrl)
+		$(shell find src -type f -name \*.yrl) | deps
 	$(if $(strip $?),$(call compile_xyrl,$?))
 endif
 

+ 3 - 3
erlang.mk

@@ -278,11 +278,11 @@ ebin/$(PROJECT).app:: $(shell find mibs -type f -name \*.mib)
 endif
 
 ebin/$(PROJECT).app:: $(shell find src -type f -name \*.erl) \
-		$(shell find src -type f -name \*.core)
+		$(shell find src -type f -name \*.core) | deps
 	$(if $(strip $?),$(call compile_erl,$?))
 
 ebin/$(PROJECT).app:: $(shell find src -type f -name \*.xrl) \
-		$(shell find src -type f -name \*.yrl)
+		$(shell find src -type f -name \*.yrl) | deps
 	$(if $(strip $?),$(call compile_xyrl,$?))
 endif
 
@@ -1124,7 +1124,7 @@ endef
 $(RELX):
 	@$(call relx_fetch)
 
-relx-rel: $(RELX)
+relx-rel: $(RELX) | deps app
 	@$(RELX) -c $(RELX_CONFIG) $(RELX_OPTS)
 
 distclean-relx-rel:

+ 1 - 1
plugins/relx.mk

@@ -38,7 +38,7 @@ endef
 $(RELX):
 	@$(call relx_fetch)
 
-relx-rel: $(RELX)
+relx-rel: $(RELX) | deps app
 	@$(RELX) -c $(RELX_CONFIG) $(RELX_OPTS)
 
 distclean-relx-rel: