mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 23:16:16 +02:00
[package] add dist and distcheck target (to create new source balls)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16230 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
9158119b40
commit
5880d2ea18
@ -70,7 +70,7 @@ CONFIGURE_VARS = \
|
|||||||
LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
|
LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
|
||||||
|
|
||||||
CONFIGURE_PATH = .
|
CONFIGURE_PATH = .
|
||||||
CONFIGURE_CMD = ./configure
|
CONFIGURE_CMD = $(CONFIGURE_PATH)/configure
|
||||||
|
|
||||||
replace_script=$(FIND) $(1) -name $(2) | $(XARGS) chmod u+w; $(FIND) $(1) -name $(2) | $(XARGS) -n1 cp $(SCRIPT_DIR)/$(2);
|
replace_script=$(FIND) $(1) -name $(2) | $(XARGS) chmod u+w; $(FIND) $(1) -name $(2) | $(XARGS) -n1 cp $(SCRIPT_DIR)/$(2);
|
||||||
|
|
||||||
@ -117,3 +117,11 @@ define Build/Install/Default
|
|||||||
$(MAKE_INSTALL_FLAGS) \
|
$(MAKE_INSTALL_FLAGS) \
|
||||||
$(1) install;
|
$(1) install;
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Build/Dist/Default
|
||||||
|
$(call Build/Compile/Default, DESTDIR="$(PKG_BUILD_DIR)/tmp" CC="$(TARGET_CC)" dist)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/DistCheck/Default
|
||||||
|
$(call Build/Compile/Default, DESTDIR="$(PKG_BUILD_DIR)/tmp" CC="$(TARGET_CC)" distcheck)
|
||||||
|
endef
|
||||||
|
@ -141,6 +141,8 @@ define Build/DefaultTargets
|
|||||||
|
|
||||||
prepare: $(STAMP_PREPARED)
|
prepare: $(STAMP_PREPARED)
|
||||||
configure: $(STAMP_CONFIGURED)
|
configure: $(STAMP_CONFIGURED)
|
||||||
|
dist: $(STAMP_CONFIGURED)
|
||||||
|
distcheck: $(STAMP_CONFIGURED)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define BuildPackage
|
define BuildPackage
|
||||||
@ -189,6 +191,8 @@ Build/Prepare=$(call Build/Prepare/Default,)
|
|||||||
Build/Configure=$(call Build/Configure/Default,)
|
Build/Configure=$(call Build/Configure/Default,)
|
||||||
Build/Compile=$(call Build/Compile/Default,)
|
Build/Compile=$(call Build/Compile/Default,)
|
||||||
Build/Install=$(if $(PKG_INSTALL),$(call Build/Install/Default,))
|
Build/Install=$(if $(PKG_INSTALL),$(call Build/Install/Default,))
|
||||||
|
Build/Dist=$(call Build/Dist/Default,)
|
||||||
|
Build/DistCheck=$(call Build/DistCheck/Default,)
|
||||||
|
|
||||||
$(PACKAGE_DIR):
|
$(PACKAGE_DIR):
|
||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
@ -213,3 +217,9 @@ clean: clean-staging FORCE
|
|||||||
$(Build/Clean)
|
$(Build/Clean)
|
||||||
rm -f $(STAGING_DIR)/packages/$(PKG_NAME).list $(STAGING_DIR_HOST)/packages/$(PKG_NAME).list
|
rm -f $(STAGING_DIR)/packages/$(PKG_NAME).list $(STAGING_DIR_HOST)/packages/$(PKG_NAME).list
|
||||||
rm -rf $(PKG_BUILD_DIR)
|
rm -rf $(PKG_BUILD_DIR)
|
||||||
|
|
||||||
|
dist:
|
||||||
|
$(Build/Dist)
|
||||||
|
|
||||||
|
distcheck:
|
||||||
|
$(Build/DistCheck)
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
|
|
||||||
SUBTARGETS:=clean download prepare compile install update refresh prereq
|
SUBTARGETS:=clean download prepare compile install update refresh prereq dist distcheck
|
||||||
|
|
||||||
subtarget-default = $(filter-out ., \
|
subtarget-default = $(filter-out ., \
|
||||||
$(if $($(1)/builddirs-$(2)),$($(1)/builddirs-$(2)), \
|
$(if $($(1)/builddirs-$(2)),$($(1)/builddirs-$(2)), \
|
||||||
|
Loading…
Reference in New Issue
Block a user