5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2025-01-22 06:04:10 +03:00
pve-common/Makefile

42 lines
792 B
Makefile
Raw Normal View History

2017-03-08 10:27:29 +01:00
VERSION=5.0
PKGREL=40
2011-08-23 07:31:48 +02:00
PACKAGE=libpve-common-perl
ARCH=all
GITVERSION:=$(shell git rev-parse HEAD)
2013-09-02 10:45:02 +02:00
BUILDDIR ?= build
2011-08-23 07:31:48 +02:00
DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
all: ${DEB}
.PHONY: dinstall
dinstall: deb
dpkg -i ${DEB}
.PHONY: deb
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
2011-08-23 07:31:48 +02:00
lintian ${DEB}
.PHONY: clean distclean
2011-08-23 07:31:48 +02:00
distclean: clean
clean:
rm -rf *~ *.deb *.changes ${BUILDDIR} *.buildinfo
2011-08-23 07:31:48 +02:00
2015-06-25 11:54:31 +02:00
.PHONY: check
check:
$(MAKE) -C test check
2011-08-23 07:31:48 +02:00
.PHONY: upload
upload: ${DEB}
2018-04-05 12:23:17 +02:00
tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch
2011-08-23 07:31:48 +02:00