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

43 lines
785 B
Makefile
Raw Normal View History

2017-03-08 10:27:29 +01:00
VERSION=5.0
2018-06-15 12:06:16 +02:00
PKGREL=34
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
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}:
$(MAKE) -C test check
2011-08-23 07:31:48 +02:00
rm -rf build
2015-02-27 16:57:20 +01:00
rsync -a src/ build
rsync -a debian/ build/debian
2013-09-02 10:45:02 +02:00
echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
2017-09-06 09:36:49 +02:00
cd build; dpkg-buildpackage -b -us -uc
2011-08-23 07:31:48 +02:00
lintian ${DEB}
.PHONY: clean
clean:
2017-04-04 09:32:59 +02:00
rm -rf *~ *.deb *.changes build ${PACKAGE}-*.tar.gz *.buildinfo
2011-08-23 07:31:48 +02:00
.PHONY: distclean
distclean: clean
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