Browse Source

Only set id to git --describe when we are a dependency

This way we can commit the .app file once and it won't
change until we actually change something. Much better
for "no .app.src" file method.

We are getting close to making this method the default!
Loïc Hoguin 9 years ago
parent
commit
42e14a3edb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      core/erlc.mk

+ 2 - 2
core/erlc.mk

@@ -57,7 +57,7 @@ define app_file
 {application, $(PROJECT), [
 	{description, "$(PROJECT_DESCRIPTION)"},
 	{vsn, "$(PROJECT_VERSION)"},
-	{id, "$(1)"},
+	$(if $(IS_DEP),{id, "$(1)"},)
 	{modules, [$(call comma_list,$(2))]},
 	{registered, []},
 	{applications, [$(call comma_list,kernel stdlib $(OTP_DEPS) $(DEPS))]}
@@ -68,7 +68,7 @@ define app_file
 {application, $(PROJECT), [
 	{description, "$(PROJECT_DESCRIPTION)"},
 	{vsn, "$(PROJECT_VERSION)"},
-	{id, "$(1)"},
+	$(if $(IS_DEP),{id$(comma)$(space)"$(1)"}$(comma))
 	{modules, [$(call comma_list,$(2))]},
 	{registered, [$(call comma_list,$(PROJECT)_sup $(PROJECT_REGISTERED))]},
 	{applications, [$(call comma_list,kernel stdlib $(OTP_DEPS) $(DEPS))]},