]> xenbits.xensource.com Git - xcp/xen-api-libs.git/commitdiff
[CAPRI]: add sources to output of xen-api-libs build
authorDavid Scott <david.scott@xensource.com>
Mon, 28 Sep 2009 17:36:40 +0000 (18:36 +0100)
committerDavid Scott <david.scott@xensource.com>
Mon, 28 Sep 2009 17:36:40 +0000 (18:36 +0100)
Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Makefile

index ef91be765d4e44dfe18391334275059cbb246264..663c4976a7f95f06fd0109e891016d81658cd172 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -88,12 +88,20 @@ $(OUTPUT_XAPI_PKG): $(MY_OBJ_DIR)/.dirstamp $(MY_OUTPUT_DIR)/.dirstamp
        $(MAKE) DESTDIR=$(MY_OBJ_DIR)/staging installxen
        tar -C $(DESTDIR) -zcf $@ .
 
+OUTPUT_SRC := $(MY_OUTPUT_DIR)/xen-api-libs-src.tar.bz2
+
+$(MY_SOURCES)/MANIFEST: $(MY_SOURCES_DIRSTAMP) $(OUTPUT_SRC)
+       echo api lgpl-with-linking-exception file $(OUTPUT_SRC) > $@
+
+$(OUTPUT_SRC):
+       cd $(REPO) && hg archive -t tbz2 $(HG_EXCLUDE) $@
+
 .PHONY: api-libs
-api-libs: $(OUTPUT_API_PKG)
+api-libs: $(OUTPUT_API_PKG) $(MY_SOURCES)/MANIFEST
        @ :
 
 .PHONY: xapi-libs
-xapi-libs: $(OUTPUT_XAPI_PKG)
+xapi-libs: $(OUTPUT_XAPI_PKG) $(MY_SOURCES)/MANIFEST
        @ :
 
 .PHONY: clean