add dist and distcheck target (to create new source balls)
authorRalph Hempel <ralph.hempel@lantiq.com>
Sun, 31 May 2009 12:01:05 +0000 (12:01 +0000)
committerRalph Hempel <ralph.hempel@lantiq.com>
Sun, 31 May 2009 12:01:05 +0000 (12:01 +0000)
SVN-Revision: 16230

include/package-defaults.mk
include/package.mk
include/subdir.mk

index 700bc5b99044398ca67d27be02f9c9773184271d..1553f2f0d14b15937edc3ca3fd7b08208fd1a6cc 100644 (file)
@@ -70,7 +70,7 @@ CONFIGURE_VARS = \
                LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
 
 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);
 
@@ -117,3 +117,11 @@ define Build/Install/Default
                $(MAKE_INSTALL_FLAGS) \
                $(1) install;
 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
index a351661428bf5ee0601bf8ae81444678f619cc7a..22808654db6e037b5fb64ee1fa4b78ef76ae7f4e 100644 (file)
@@ -141,6 +141,8 @@ define Build/DefaultTargets
 
   prepare: $(STAMP_PREPARED)
   configure: $(STAMP_CONFIGURED)
+  dist: $(STAMP_CONFIGURED)
+  distcheck: $(STAMP_CONFIGURED)
 endef
 
 define BuildPackage
@@ -189,6 +191,8 @@ Build/Prepare=$(call Build/Prepare/Default,)
 Build/Configure=$(call Build/Configure/Default,)
 Build/Compile=$(call Build/Compile/Default,)
 Build/Install=$(if $(PKG_INSTALL),$(call Build/Install/Default,))
+Build/Dist=$(call Build/Dist/Default,)
+Build/DistCheck=$(call Build/DistCheck/Default,)
 
 $(PACKAGE_DIR):
        mkdir -p $@
@@ -213,3 +217,9 @@ clean: clean-staging FORCE
        $(Build/Clean)
        rm -f $(STAGING_DIR)/packages/$(PKG_NAME).list $(STAGING_DIR_HOST)/packages/$(PKG_NAME).list
        rm -rf $(PKG_BUILD_DIR)
+
+dist:
+       $(Build/Dist)
+   
+distcheck:
+       $(Build/DistCheck) 
index be8c308205969dc511f9a37b1707e18001f43ef7..d93d40fca7577844d291244f703e3a2195768118 100644 (file)
@@ -5,7 +5,7 @@
 # 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 ., \
        $(if $($(1)/builddirs-$(2)),$($(1)/builddirs-$(2)), \