From patchwork Mon Feb 16 17:00:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Hunleth X-Patchwork-Id: 440299 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id A5F74140273 for ; Tue, 17 Feb 2015 04:02:35 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 02D7D91A09; Mon, 16 Feb 2015 17:02:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FxQYubtw4lGO; Mon, 16 Feb 2015 17:02:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id D7CDC919E1; Mon, 16 Feb 2015 17:02:31 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id B954A1C2001 for ; Mon, 16 Feb 2015 17:02:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B4FD9A2BCD for ; Mon, 16 Feb 2015 17:02:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wrNrX-8rp4Vz for ; Mon, 16 Feb 2015 17:02:27 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qc0-f171.google.com (mail-qc0-f171.google.com [209.85.216.171]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 58ABAA2BF7 for ; Mon, 16 Feb 2015 17:02:27 +0000 (UTC) Received: by mail-qc0-f171.google.com with SMTP id l6so25058683qcy.2 for ; Mon, 16 Feb 2015 09:02:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=OXlymyQGsHO/I8wls18QEsqtXNLqyl6F2sNplsk0Ouc=; b=X3s1NA+yIB99JgWphhT+ql5xHvTPrstsJ27TnKsd2Sz5UKkLccNZY1eIJQ2Yt7+VcF lZ3tTRyg5e8EhFHDQ4kT80AOG7Ol0eMxMoqV9o+Aq1qC3Qxw3Ssl7s6iFcttayAsY3NS dG1QUHR+7ekJ+XgflZrXipl83kvxJDgCnm8qZw9zfPIgPWibocTPDGBwvbJw7qoW9grl nmDeTrHtvoyM/AQyVUKwdL+LfPM9SPRZA0cybk9SCosCpYRnBDZX0pqfja1jp/DwSb/s QWdM5kgK4zcPbykL6fhpV3+qx83avvpykH+z7Pg2IgcMRlSS3Wp1WJTfPKlEifyJzyKg sSeA== X-Gm-Message-State: ALoCoQmXNdk19wP6KiLruT1eHQ0MVFz1zoo5iOPc1rDoc1zC9mgKrGtcU/RK3cEdkHqv8Ki1y2ng X-Received: by 10.140.148.195 with SMTP id 186mr1054227qhu.60.1424106146587; Mon, 16 Feb 2015 09:02:26 -0800 (PST) Received: from halfmarathon.home.hunleth.com (c-68-50-186-80.hsd1.dc.comcast.net. [68.50.186.80]) by mx.google.com with ESMTPSA id b60sm2449791qge.13.2015.02.16.09.02.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Feb 2015 09:02:25 -0800 (PST) From: Frank Hunleth To: buildroot@buildroot.org Date: Mon, 16 Feb 2015 12:00:29 -0500 Message-Id: <1424106030-16836-3-git-send-email-fhunleth@troodon-software.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1424106030-16836-1-git-send-email-fhunleth@troodon-software.com> References: <1424106030-16836-1-git-send-email-fhunleth@troodon-software.com> Subject: [Buildroot] [PATCH 2/3] pkg-rebar: add bin to list of install directories X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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 --- package/pkg-rebar.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/pkg-rebar.mk b/package/pkg-rebar.mk index 57fb2f4..45d1c7d 100644 --- a/package/pkg-rebar.mk +++ b/package/pkg-rebar.mk @@ -43,7 +43,7 @@ REBAR_TARGET_DEPS_ENV = \ # 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). # # argument 1 should typically be $(HOST_DIR), $(TARGET_DIR), @@ -57,7 +57,7 @@ REBAR_TARGET_DEPS_ENV = \ # define install-erlang-directories $(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 \ cp -r $(@D)/$$dir $(1)$($(PKG)_ERLANG_LIBDIR); \ fi; \