X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Makefile;h=19c27eb46558c29401028738b0ee6e6c89556df3;hb=5171b1d5122c1cad8f4cb96e9997e0b379d9e6f0;hp=8d20e167a9ada093c711e00093ae0075662bfaba;hpb=fd754ca16616f0fadd75899e93192a14ca026027;p=pve-cluster.git diff --git a/Makefile b/Makefile index 8d20e16..19c27eb 100644 --- a/Makefile +++ b/Makefile @@ -1,40 +1,44 @@ -RELEASE=2.0 +RELEASE=4.2 PACKAGE=pve-cluster -PKGVER=1.0 -PKGREL=8 +PKGVER=4.0 +PKGREL=40 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) +GITVERSION:=$(shell cat .git/refs/heads/master) DEB=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb +DBG_DEB=${PACKAGE}-dbg_${PKGVER}-${PKGREL}_${ARCH}.deb -all: ${DEB} + +all: ${DEB} ${DBG_DEB} cpgtest: cpgtest.c - gcc -Wall cpgtest.c $(shell pkg-config --cflags --libs libcpg libcoroipcc) -o cpgtest + gcc -Wall cpgtest.c $(shell pkg-config --cflags --libs libcpg libqb) -o cpgtest .PHONY: dinstall dinstall: ${DEB} - dpkg -i ${DEB} + dpkg -i ${DEB} -.PHONY: ${DEB} -${DEB}: +.PHONY: ${DEB} ${DBG_DEB} +${DEB} ${DBG_DEB}: rm -rf build rsync -a --exclude .svn data/ build cp -a debian build/debian + echo "git clone git://git.proxmox.com/git/pve-cluster.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE cd build; ./autogen.sh cd build; dpkg-buildpackage -rfakeroot -b -us -uc lintian ${DEB} .PHONY: upload -upload: ${DEB} +upload: ${DEB} ${DBG_DEB} umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw mkdir -p /pve/${RELEASE}/extra rm -f /pve/${RELEASE}/extra/${PACKAGE}*.deb rm -f /pve/${RELEASE}/extra/Packages* - cp ${DEB} /pve/${RELEASE}/extra + cp ${DEB} ${DBG_DEB} /pve/${RELEASE}/extra cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro