summaryrefslogtreecommitdiff
path: root/include/package-defaults.mk
diff options
context:
space:
mode:
authorRalph Hempel <ralph.hempel@lantiq.com>2009-05-31 12:01:05 +0000
committerRalph Hempel <ralph.hempel@lantiq.com>2009-05-31 12:01:05 +0000
commit6f297036252df477192eddf95728c9933df4d7db (patch)
tree27eef3b1d67d7610f8a76ebfe896a5252144893c /include/package-defaults.mk
parent3dc92527a315a06fadb8766c8891f67400976f08 (diff)
downloadmtk-20170518-6f297036252df477192eddf95728c9933df4d7db.zip
mtk-20170518-6f297036252df477192eddf95728c9933df4d7db.tar.gz
mtk-20170518-6f297036252df477192eddf95728c9933df4d7db.tar.bz2
add dist and distcheck target (to create new source balls)
SVN-Revision: 16230
Diffstat (limited to 'include/package-defaults.mk')
-rw-r--r--include/package-defaults.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/package-defaults.mk b/include/package-defaults.mk
index 700bc5b..1553f2f 100644
--- a/include/package-defaults.mk
+++ b/include/package-defaults.mk
@@ -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