]> git.proxmox.com Git - pve-common.git/blobdiff - Makefile
PVE::ACME - untaint saved account data
[pve-common.git] / Makefile
index 0d8973dc7c433b06e85d56c86088b41cfc3c0666..2f583cc19a7aabc1b8e65b87c0a97b42a8ea0f27 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,13 @@
 VERSION=5.0
-PKGREL=26
+PKGREL=37
 
 PACKAGE=libpve-common-perl
 
-PREFIX=/usr
-BINDIR=${PREFIX}/bin
-MANDIR=${PREFIX}/share/man
-DOCDIR=${PREFIX}/share/doc
-MAN1DIR=${MANDIR}/man1/
-PERLDIR=${PREFIX}/share/perl5
-
 ARCH=all
 GITVERSION:=$(shell git rev-parse HEAD)
 
+BUILDDIR ?= build
+
 DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
 
 all: ${DEB}
@@ -23,21 +18,18 @@ dinstall: deb
 
 
 .PHONY: deb
-deb ${DEB}:
-       $(MAKE) -C test check
-       rm -rf build
-       rsync -a src/ build
-       rsync -a debian/ build/debian
-       echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
-       cd build; dpkg-buildpackage -b -us -uc
+deb ${DEB}: check
+       rm -rf ${BUILDDIR}
+       rsync -a src/ ${BUILDDIR}
+       rsync -a debian/ ${BUILDDIR}/debian
+       echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
+       cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
        lintian ${DEB}
 
-.PHONY: clean
-clean:         
-       rm -rf *~ *.deb *.changes build ${PACKAGE}-*.tar.gz *.buildinfo
-
-.PHONY: distclean
+.PHONY: clean distclean
 distclean: clean
+clean:
+       rm -rf *~ *.deb *.changes ${BUILDDIR} *.buildinfo
 
 .PHONY: check
 check:
@@ -45,5 +37,5 @@ check:
 
 .PHONY: upload
 upload: ${DEB}
-       tar cf - ${DEB}|ssh repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch
+       tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch