Explorar el Código

pkg-rebar: add bin to list of install directories

Some Erlang packages provide a bin directory for programs that are to be
invoked from the command line. An example of such a package is the Lisp
Flavored Erlang compiler. The Erlang OTP library includes several more
examples (it doesn't use rebar, though.) This change makes sure that the
bin directory gets installed too.

Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Frank Hunleth hace 10 años
padre
commit
7af66e5053
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      package/pkg-rebar.mk

+ 2 - 2
package/pkg-rebar.mk

@@ -43,7 +43,7 @@ REBAR_TARGET_DEPS_ENV = \
 
 
 # Install an Erlang application from $(@D).
 # Install an Erlang application from $(@D).
 #
 #
-# i.e., define a recipe that installs the "ebin priv $(2)" directories
+# i.e., define a recipe that installs the "bin ebin priv $(2)" directories
 # from $(@D) to $(1)$($(PKG)_ERLANG_LIBDIR).
 # from $(@D) to $(1)$($(PKG)_ERLANG_LIBDIR).
 #
 #
 #  argument 1 should typically be $(HOST_DIR), $(TARGET_DIR),
 #  argument 1 should typically be $(HOST_DIR), $(TARGET_DIR),
@@ -57,7 +57,7 @@ REBAR_TARGET_DEPS_ENV = \
 #
 #
 define install-erlang-directories
 define install-erlang-directories
 	$(INSTALL) -d $(1)/$($(PKG)_ERLANG_LIBDIR)
 	$(INSTALL) -d $(1)/$($(PKG)_ERLANG_LIBDIR)
-	for dir in ebin priv $(2); do                                   \
+	for dir in bin ebin priv $(2); do                               \
 		if test -d $(@D)/$$dir; then                            \
 		if test -d $(@D)/$$dir; then                            \
 			cp -r $(@D)/$$dir $(1)$($(PKG)_ERLANG_LIBDIR);  \
 			cp -r $(@D)/$$dir $(1)$($(PKG)_ERLANG_LIBDIR);  \
 		fi;                                                     \
 		fi;                                                     \