aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-12-27 02:10:54 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-12-27 02:10:54 +0000
commit927c84c100e744f515de64034c5d3a698064630d (patch)
tree6eae5363928c7f676b4a62f831641991a395d849 /include
parent33379fc5bc45d6cd24cbbdeb2bb911da426d3f21 (diff)
downloadupstream-927c84c100e744f515de64034c5d3a698064630d.tar.gz
upstream-927c84c100e744f515de64034c5d3a698064630d.tar.bz2
upstream-927c84c100e744f515de64034c5d3a698064630d.zip
add $(STAGING_DIR)/host, which contains target specific, but host executable files
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9939 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r--include/package.mk20
1 files changed, 8 insertions, 12 deletions
diff --git a/include/package.mk b/include/package.mk
index 9097d7b0bf..7e6b750da0 100644
--- a/include/package.mk
+++ b/include/package.mk
@@ -72,15 +72,11 @@ define Build/DefaultTargets
$(STAMP_INSTALLED): $(STAMP_BUILT)
$(NO_TRACE_MAKE) clean-staging
rm -rf $(TMP_DIR)/stage-$(PKG_NAME)
- mkdir -p $(TMP_DIR)/stage-$(PKG_NAME) $(STAGING_DIR)/packages $(STAGING_DIR_HOST)/packages
- $(call Build/InstallDev,$(TMP_DIR)/stage-$(PKG_NAME)/target,$(TMP_DIR)/stage-$(PKG_NAME)/host)
- if [ -d $(TMP_DIR)/stage-$(PKG_NAME)/target ]; then \
- (cd $(TMP_DIR)/stage-$(PKG_NAME)/target; find > $(STAGING_DIR)/packages/$(PKG_NAME).list); \
- $(CP) $(TMP_DIR)/stage-$(PKG_NAME)/target/* $(STAGING_DIR)/; \
- fi
- if [ -d $(TMP_DIR)/stage-$(PKG_NAME)/host ]; then \
- (cd $(TMP_DIR)/stage-$(PKG_NAME)/host; find > $(STAGING_DIR_HOST)/packages/$(PKG_NAME).list); \
- $(CP) $(TMP_DIR)/stage-$(PKG_NAME)/host/* $(STAGING_DIR_HOST)/; \
+ mkdir -p $(TMP_DIR)/stage-$(PKG_NAME)/host $(STAGING_DIR)/packages $(STAGING_DIR_HOST)/packages
+ $(call Build/InstallDev,$(TMP_DIR)/stage-$(PKG_NAME),$(TMP_DIR)/stage-$(PKG_NAME)/host)
+ if [ -d $(TMP_DIR)/stage-$(PKG_NAME) ]; then \
+ (cd $(TMP_DIR)/stage-$(PKG_NAME); find > $(STAGING_DIR)/packages/$(PKG_NAME).list); \
+ $(CP) $(TMP_DIR)/stage-$(PKG_NAME)/* $(STAGING_DIR)/; \
fi
rm -rf $(TMP_DIR)/stage-$(PKG_NAME)
touch $$@
@@ -173,12 +169,12 @@ compile:
install:
clean-staging: FORCE
rm -f $(STAMP_INSTALLED)
- for dir in "$(STAGING_DIR)" "$(STAGING_DIR_HOST)"; do (\
- cd $$dir; \
+ @-(\
+ cd "$(STAGING_DIR)"; \
if [ -f packages/$(PKG_NAME).list ]; then \
cat packages/$(PKG_NAME).list | xargs -r rm -f 2>/dev/null; \
fi; \
- ) done;
+ )
clean: clean-staging FORCE
$(call Build/UninstallDev,$(STAGING_DIR),$(STAGING_DIR_HOST))