mirror of
git://git.proxmox.com/git/pve-common.git
synced 2024-12-24 01:33:48 +03:00
42 lines
792 B
Makefile
42 lines
792 B
Makefile
VERSION=5.0
|
|
PKGREL=35
|
|
|
|
PACKAGE=libpve-common-perl
|
|
|
|
ARCH=all
|
|
GITVERSION:=$(shell git rev-parse HEAD)
|
|
|
|
BUILDDIR ?= build
|
|
|
|
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
|
|
lintian ${DEB}
|
|
|
|
.PHONY: clean distclean
|
|
distclean: clean
|
|
clean:
|
|
rm -rf *~ *.deb *.changes ${BUILDDIR} *.buildinfo
|
|
|
|
.PHONY: check
|
|
check:
|
|
$(MAKE) -C test check
|
|
|
|
.PHONY: upload
|
|
upload: ${DEB}
|
|
tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch
|
|
|