- more cleanup (Cristian Ionescu-Idbohrn)

This commit is contained in:
Bernhard Reutner-Fischer 2007-08-21 19:35:08 +00:00
parent fb9d19603c
commit e06abe6fba

View File

@ -37,14 +37,14 @@ $(SED_DIR1)/.unpacked: $(DL_DIR)/$(SED_SOURCE)
mkdir -p $(HOST_SED_DIR)/bin
$(SED_CAT) $(DL_DIR)/$(SED_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
toolchain/patch-kernel.sh $(SED_DIR1) package/sed/ configure.patch
touch $(SED_DIR1)/.unpacked
touch $@
$(SED_DIR1)/.configured: $(SED_DIR1)/.unpacked
(cd $(SED_DIR1); rm -rf config.cache; \
./configure \
--prefix=/usr \
)
touch $(SED_DIR1)/.configured
touch $@
$(SED_DIR1)/$(SED_BINARY): $(SED_DIR1)/.configured
$(MAKE) -C $(SED_DIR1)
@ -52,7 +52,8 @@ $(SED_DIR1)/$(SED_BINARY): $(SED_DIR1)/.configured
# This stuff is needed to work around GNU make deficiencies
build-sed-host-binary: $(SED_DIR1)/$(SED_BINARY)
@if [ -L $(HOST_SED_DIR)/$(SED_TARGET_BINARY) ]; then \
rm -f $(HOST_SED_DIR)/$(SED_TARGET_BINARY); fi
rm -f $(HOST_SED_DIR)/$(SED_TARGET_BINARY); \
fi
@if [ ! -f $(HOST_SED_DIR)/$(SED_TARGET_BINARY) -o $(HOST_SED_DIR)/$(SED_TARGET_BINARY) \
-ot $(SED_DIR1)/$(SED_BINARY) ]; then \
set -x; \
@ -60,7 +61,8 @@ build-sed-host-binary: $(SED_DIR1)/$(SED_BINARY)
$(MAKE) DESTDIR=$(HOST_SED_DIR) -C $(SED_DIR1) install; \
mv $(HOST_SED_DIR)/usr/bin/sed $(HOST_SED_DIR)/bin/; \
rm -rf $(HOST_SED_DIR)/share/locale $(HOST_SED_DIR)/usr/info \
$(HOST_SED_DIR)/usr/man $(HOST_SED_DIR)/usr/share/doc; fi
$(HOST_SED_DIR)/usr/man $(HOST_SED_DIR)/usr/share/doc; \
fi
$(HOST_SED_DIR)/$(SED_TARGET_BINARY):
if [ ! -e "$(HOST_SED_DIR)/$(SED_TARGET_BINARY)" ]; then \
@ -120,7 +122,7 @@ $(SED_DIR2)/.configured: $(SED_DIR2)/.unpacked
--include=$(STAGING_DIR)/usr/include \
$(DISABLE_NLS) \
)
touch $(SED_DIR2)/.configured
touch $@
$(SED_DIR2)/$(SED_BINARY): $(SED_DIR2)/.configured
$(MAKE) CC=$(TARGET_CC) -C $(SED_DIR2)
@ -128,7 +130,8 @@ $(SED_DIR2)/$(SED_BINARY): $(SED_DIR2)/.configured
# This stuff is needed to work around GNU make deficiencies
sed-target_binary: $(SED_DIR2)/$(SED_BINARY)
@if [ -L $(TARGET_DIR)/$(SED_TARGET_BINARY) ]; then \
rm -f $(TARGET_DIR)/$(SED_TARGET_BINARY); fi
rm -f $(TARGET_DIR)/$(SED_TARGET_BINARY); \
fi
@if [ ! -f $(SED_DIR2)/$(SED_BINARY) -o $(TARGET_DIR)/$(SED_TARGET_BINARY) \
-ot $(SED_DIR2)/$(SED_BINARY) ]; then \
@ -136,7 +139,8 @@ sed-target_binary: $(SED_DIR2)/$(SED_BINARY)
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(SED_DIR2) install; \
mv $(TARGET_DIR)/usr/bin/sed $(TARGET_DIR)/bin/; \
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc; fi
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc; \
fi
sed: uclibc sed-target_binary
@ -156,4 +160,3 @@ sed-dirclean:
ifeq ($(strip $(BR2_PACKAGE_SED)),y)
TARGETS+=sed
endif