]> git.proxmox.com Git - pve-apiclient.git/blobdiff - Makefile
Add SOURCE file
[pve-apiclient.git] / Makefile
index 7401d08da273510ab459dd62ddbd2285ef9e49be..8269eae1c05caecbfa8825ac2065eef16c4ea8dc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,7 @@ DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
 PVE_COMMON_FILES=              \
        Exception.pm
 
+GITVERSION:=$(shell git rev-parse HEAD)
 
 all: ${DEB}
 
@@ -22,6 +23,7 @@ $(BUILDSRC):
        rm -rf $(BUILDSRC)
        rsync -a debian $(BUILDSRC)
        make DESTDIR=./$(BUILDSRC) install
+       echo "git clone git://git.proxmox.com/git/pve-apiclient.git\\ngit checkout ${GITVERSION}" > $(BUILDSRC)/debian/SOURCE
 
 .PHONY: deb
 deb ${DEB}: $(BUILDSRC)