X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Makefile;h=50219d60170dbbd0be189f20031298e33dc9fb34;hb=0c040cfee2fa321b744be9a65e8bec27f90b3ae8;hp=2e3d4e1ac0eaf874b49d8f9f51986b37a8080aaf;hpb=4478c2ae2ff38cb161f2ad6fc09c100512676439;p=qemu-server.git diff --git a/Makefile b/Makefile index 2e3d4e1a..50219d60 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ include /usr/share/dpkg/pkg-info.mk include /usr/share/dpkg/architecture.mk PACKAGE=qemu-server +BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM} DESTDIR= PREFIX=/usr @@ -20,6 +21,7 @@ GITVERSION:=$(shell git rev-parse HEAD) DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb DBG_DEB=${PACKAGE}-dbgsym_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb +DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc DEBS=${DEB} ${DBG_DEB} @@ -77,16 +79,24 @@ install: ${PKGSOURCES} install -m 0644 qm.conf.5 ${DESTDIR}/${MAN5DIR} cd ${DESTDIR}/${MAN5DIR}; ln -s -f qm.conf.5.gz vm.conf.5.gz +${BUILDDIR}: + rm -rf $(BUILDDIR) + rsync -a * $(BUILDDIR) + echo "git clone git://git.proxmox.com/git/qemu-server.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE + .PHONY: deb deb: ${DEBS} ${DBG_DEB}: ${DEB} -${DEB}: - rm -rf build - rsync -a * build - echo "git clone git://git.proxmox.com/git/qemu-server.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE - cd build; dpkg-buildpackage -b -us -uc +${DEB}: $(BUILDDIR) + cd $(BUILDDIR); dpkg-buildpackage -b -us -uc lintian ${DEBS} +.PHONY: dsc +dsc: ${DSC} +${DSC}: ${BUILDDIR} + cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d + lintian ${DSC} + .PHONY: test test: PVE_GENERATING_DOCS=1 perl -I. ./qm verifyapi @@ -99,7 +109,7 @@ upload: ${DEB} .PHONY: clean clean: $(MAKE) cleanup-docgen - rm -rf build *.deb *.buildinfo *.changes + rm -rf $(PACKAGE)-*/ *.deb *.buildinfo *.changes *.dsc $(PACKAGE)_*.tar.gz find . -name '*~' -exec rm {} ';'