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

54 lines
1.0 KiB
Makefile
Raw Normal View History

VERSION=6.0
PKGREL=2
2011-08-23 07:31:48 +02:00
PACKAGE=libpve-common-perl
ARCH=all
2013-09-02 10:45:02 +02:00
BUILDDIR ?= ${PACKAGE}-${VERSION}
2011-08-23 07:31:48 +02:00
DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
DSC=${PACKAGE}_${VERSION}-${PKGREL}.dsc
TARGZ=${PACKAGE}_${VERSION}-${PKGREL}.tar.gz
2011-08-23 07:31:48 +02:00
all:
${MAKE} -C src
2011-08-23 07:31:48 +02:00
.PHONY: dinstall
dinstall: deb
dpkg -i ${DEB}
${BUILDDIR}: src debian
rm -rf ${BUILDDIR}
rsync -a * ${BUILDDIR}
echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout $(shell git rev-parse HEAD)" > ${BUILDDIR}/debian/SOURCE
.PHONY: deb
deb: ${DEB}
${DEB}: ${BUILDDIR}
cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
2011-08-23 07:31:48 +02:00
lintian ${DEB}
.PHONY: dsc
dsc ${TARGZ}: ${DSC}
${DSC}: ${BUILDDIR}
cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
lintian ${DSC}
.PHONY: clean distclean
2011-08-23 07:31:48 +02:00
distclean: clean
clean:
rm -rf *~ *.deb *.changes ${BUILDDIR} *.buildinfo *.dsc *.tar.gz
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: install
install:
${MAKE} -C src install
2011-08-23 07:31:48 +02:00
.PHONY: upload
upload: ${DEB}
tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist buster