1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-10 17:01:54 +02:00

Allow extracting in non-standard PKG_BUILD_DIR

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@865 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2005-05-13 01:45:56 +00:00
parent 64f9c0990a
commit b3278bdd0b

View File

@ -35,7 +35,8 @@ endif
ifneq ($(strip $(PKG_CAT)),) ifneq ($(strip $(PKG_CAT)),)
$(PKG_BUILD_DIR)/.prepared: $(DL_DIR)/$(PKG_SOURCE) $(PKG_BUILD_DIR)/.prepared: $(DL_DIR)/$(PKG_SOURCE)
rm -rf $(PKG_BUILD_DIR) rm -rf $(PKG_BUILD_DIR)
$(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - mkdir -p $(PKG_BUILD_DIR)
$(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(PKG_BUILD_DIR)/.. $(TAR_OPTIONS) -
if [ -d ./patches ]; then \ if [ -d ./patches ]; then \
$(PATCH) $(PKG_BUILD_DIR) ./patches ; \ $(PATCH) $(PKG_BUILD_DIR) ./patches ; \
fi fi