Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: jacmet at uclibc.org <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/grep
Date: Wed, 23 Jul 2008 03:35:56 -0700 (PDT)	[thread overview]
Message-ID: <20080723103556.E08FB3C814@busybox.net> (raw)

Author: jacmet
Date: 2008-07-23 03:35:56 -0700 (Wed, 23 Jul 2008)
New Revision: 22931

Log:
grep: fix target install and clean

Modified:
   trunk/buildroot/package/grep/grep.mk


Changeset:
Modified: trunk/buildroot/package/grep/grep.mk
===================================================================
--- trunk/buildroot/package/grep/grep.mk	2008-07-23 10:35:53 UTC (rev 22930)
+++ trunk/buildroot/package/grep/grep.mk	2008-07-23 10:35:56 UTC (rev 22931)
@@ -58,21 +58,16 @@
 $(GNUGREP_DIR)/$(GNUGREP_BINARY): $(GNUGREP_DIR)/.configured
 	$(MAKE) -C $(GNUGREP_DIR)
 
-# This stuff is needed to work around GNU make deficiencies
-grep-target_binary: $(GNUGREP_DIR)/$(GNUGREP_BINARY)
-	@if [ -L $(TARGET_DIR)/$(GNUGREP_TARGET_BINARY) ]; then \
-		rm -f $(TARGET_DIR)/$(GNUGREP_TARGET_BINARY); fi
-	@if [ ! -f $(GNUGREP_DIR)/$(GNUGREP_BINARY) -o $(TARGET_DIR)/$(GNUGREP_TARGET_BINARY) -ot \
-	$(GNUGREP_DIR)/$(GNUGREP_BINARY) ]; then \
-	    set -x; \
-	    rm -f $(TARGET_DIR)/bin/grep $(TARGET_DIR)/bin/egrep $(TARGET_DIR)/bin/fgrep; \
-	    cp -a $(GNUGREP_DIR)/src/grep $(GNUGREP_DIR)/src/egrep \
-		$(GNUGREP_DIR)/src/fgrep $(TARGET_DIR)/bin/; fi
+$(TARGET_DIR)/$(GNUGREP_TARGET_BINARY): $(GNUGREP_DIR)/$(GNUGREP_BINARY)
+	for i in egrep fgrep grep; do \
+		$(INSTALL) $(GNUGREP_DIR)/src/$$i $(@D); \
+	done
+	$(STRIPCMD) $(STRIP_STRIP_ALL) $@
 
-grep: uclibc $(GNUGREP_EXTRA_DEPS) grep-target_binary
+grep: uclibc $(GNUGREP_EXTRA_DEPS) $(TARGET_DIR)/$(GNUGREP_TARGET_BINARY)
 
 grep-clean:
-	$(MAKE) DESTDIR=$(TARGET_DIR) -C $(GNUGREP_DIR) uninstall
+	rm -f $(addprefix $(TARGET_DIR)/bin/,egrep fgrep grep)
 	-$(MAKE) -C $(GNUGREP_DIR) clean
 
 grep-dirclean:

             reply	other threads:[~2008-07-23 10:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-23 10:35 jacmet at uclibc.org [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-01-09 13:35 [Buildroot] svn commit: trunk/buildroot/package/grep jacmet at uclibc.org
2009-01-09 13:34 jacmet at uclibc.org
2008-07-23 12:08 jacmet at uclibc.org
2008-07-23 10:36 jacmet at uclibc.org
2008-07-23 10:35 jacmet at uclibc.org
2008-07-23 11:27 ` Bernhard Fischer
2008-07-23 12:09   ` Peter Korsgaard
2008-03-06 18:11 ninevoltz at uclibc.org
2007-08-12 23:36 ulf at uclibc.org
2007-08-12 23:35 ulf at uclibc.org

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=20080723103556.E08FB3C814@busybox.net \
    --to=jacmet@uclibc.org \
    --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