diff options
author | Nicolas Thill <nico@openwrt.org> | 2005-05-13 01:45:56 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2005-05-13 01:45:56 +0000 |
commit | 4dc6f11fdad01ee34959b80bb3c63535f6340c5f (patch) | |
tree | 574322d5f9aa6646837d52e692ac96afc5eb708a /openwrt/package | |
parent | c51cbc4d861f7667407e3870b3d25c47328837db (diff) | |
download | mtk-20170518-4dc6f11fdad01ee34959b80bb3c63535f6340c5f.zip mtk-20170518-4dc6f11fdad01ee34959b80bb3c63535f6340c5f.tar.gz mtk-20170518-4dc6f11fdad01ee34959b80bb3c63535f6340c5f.tar.bz2 |
Allow extracting in non-standard PKG_BUILD_DIR
SVN-Revision: 865
Diffstat (limited to 'openwrt/package')
-rw-r--r-- | openwrt/package/rules.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openwrt/package/rules.mk b/openwrt/package/rules.mk index 76322e1..51be458 100644 --- a/openwrt/package/rules.mk +++ b/openwrt/package/rules.mk @@ -35,7 +35,8 @@ endif ifneq ($(strip $(PKG_CAT)),) $(PKG_BUILD_DIR)/.prepared: $(DL_DIR)/$(PKG_SOURCE) 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 \ $(PATCH) $(PKG_BUILD_DIR) ./patches ; \ fi |