Loading package/grep/grep.mk +7 −12 Original line number Diff line number Diff line Loading @@ -58,21 +58,16 @@ $(GNUGREP_DIR)/.configured: $(GNUGREP_DIR)/.unpacked $(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: Loading Loading
package/grep/grep.mk +7 −12 Original line number Diff line number Diff line Loading @@ -58,21 +58,16 @@ $(GNUGREP_DIR)/.configured: $(GNUGREP_DIR)/.unpacked $(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: Loading