Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Bernhard Fischer <rep.dot.nop@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package:  alsa-lib
Date: Mon, 23 Jul 2007 15:34:00 +0200	[thread overview]
Message-ID: <20070723133400.GC7902@aon.at> (raw)
In-Reply-To: <1185196685.21840.25.camel@elrond.sweden.atmel.com>

On Mon, Jul 23, 2007 at 03:18:05PM +0200, Ulf Samuelsson wrote:
>
>>+$(ALSA_LIB_DIR)/src/.libs/$(ALSA_LIB_BINARY): $(ALSA_LIB_DIR)/.configured
>> >+	$(MAKE) -C $(ALSA_LIB_DIR)
>> >+	@touch -c $@
>> >+
>> >+$(STAGING_DIR)/$(ALSA_LIB_TARGET_BINARY): $(ALSA_LIB_DIR)/src/.libs/$(ALSA_LIB_BINARY)
>> >+	$(MAKE) DESTDIR=$(STAGING_DIR) -C $(ALSA_LIB_DIR) install
>> >+	@touch -c $@
>> >+
>> >+$(TARGET_DIR)/$(ALSA_LIB_TARGET_BINARY): $(STAGING_DIR)/$(ALSA_LIB_TARGET_BINARY)
>> >+	@mkdir -p $(TARGET_DIR)/usr/share/alsa
>> >+	@mkdir -p $(TARGET_DIR)/usr/lib/alsa-lib
>> >+	cp -dpf  $(STAGING_DIR)/lib/libasound.so*  $(TARGET_DIR)/usr/lib/
>> >+	cp -rdpf $(STAGING_DIR)/usr/share/alsa/*   $(TARGET_DIR)/usr/share/alsa/
>> >+	cp -rdpf $(STAGING_DIR)/usr/lib/alsa-lib/* $(TARGET_DIR)/usr/lib/alsa-lib/
>> 
>> install(1) would be cleaner, especially if you consider that it's a new
>> package.
>
>make install is done on the staging dir.

make install != install(1)
man install
$(INSTALL) -D /thisfile /thatfile /there/newdir
or something like that.

>I think the reason for not doing make install on the target dir is
>that it will add a lot of other stuff which is not wanted on an embedded
>system.

This is unrelated but true, yes :)

>It is a matter of taste if you "install and remove", or just copy
>the *needed* stuff. 

I prefer to just copy the needed stuff.

>Have to discuss with Someone Else(tm) if you insist.

Just using install(1) for new packages -- and eventually gradually
fixing old ones -- is sufficient. We can easily either use busybox's
install or have our own in buildroot to circumvent eventual buggy
incarnations on the host. This would also help the MacOS10 folks, i'd
say.

  reply	other threads:[~2007-07-23 13:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-23  7:54 [Buildroot] svn commit: trunk/buildroot/package: alsa-lib ulf at uclibc.org
2007-07-23 10:33 ` Bernhard Fischer
2007-07-23 13:18   ` Ulf Samuelsson
2007-07-23 13:34     ` Bernhard Fischer [this message]
2007-07-23 14:42       ` Ulf Samuelsson
2007-07-26  7:01       ` Hans-Christian Egtvedt
     [not found]       ` <1185429498.31437.11.camel@localhost.localdomain>
2007-07-27 15:59         ` Bernhard Fischer
2007-08-20  8:34           ` [Buildroot] [RFC] Building linux kernel in $(PROJECT_BUILD_DIR) Ulf Samuelsson
2007-08-20 15:56             ` Bernhard Fischer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070723133400.GC7902@aon.at \
    --to=rep.dot.nop@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox