5
0
mirror of git://git.proxmox.com/git/pve-zsync.git synced 2025-01-03 09:17:37 +03:00
pve-zsync/Makefile

65 lines
1.5 KiB
Makefile
Raw Normal View History

include /usr/share/dpkg/pkg-info.mk
2015-05-06 12:45:10 +03:00
PACKAGE=pve-zsync
DESTDIR=
SBINDIR=${DESTDIR}/usr/sbin
MAN8DIR=${DESTDIR}/usr/share/man/man8
DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
WORKDIR=${DESTDIR}/var/lib/pve-zsync
BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
2015-05-06 12:45:10 +03:00
GITVERSION:=$(shell git rev-parse HEAD)
2015-05-06 12:45:10 +03:00
DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
2015-05-06 12:45:10 +03:00
all:
2015-05-06 12:45:10 +03:00
.PHONY: dinstall
dinstall: deb
dpkg -i ${DEB}
pve-zsync.8: pve-zsync
./pve-zsync printpod | pod2man -c "Proxmox Documentation" -s 8 -r ${DEB_VERSION_UPSTREAM} -n pve-zsync - pve-zsync.8
2015-05-06 12:45:10 +03:00
.PHONY: install
install: pve-zsync.8
install -d ${SBINDIR}
install -m 0755 pve-zsync ${SBINDIR}/pve-zsync
install -d ${WORKDIR}
install -d ${MAN8DIR}
install -m 0644 pve-zsync.8 ${MAN8DIR}/pve-zsync.8
install -d ${DOCDIR}
${BUILDDIR}:
rm -rf ${BUILDDIR}
rsync -a * ${BUILDDIR}
echo "git clone git://git.proxmox.com/git/dab.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
2015-05-06 12:45:10 +03:00
2017-02-13 16:27:50 +03:00
.PHONY: deb
deb: ${DEB}
${DEB}: ${BUILDDIR}
cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
2017-02-13 16:28:15 +03:00
lintian ${DEB}
2015-05-06 12:45:10 +03:00
.PHONY: dsc
dsc: ${DSC}
${DSC}:${BUILDDIR}
cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
lintian ${DSC}
2015-05-06 12:45:10 +03:00
.PHONY: clean
clean:
rm -rf ${BUILDDIR} *.deb *.dsc ${PACKAGE}*.tar.gz *.buildinfo *.changes
2015-05-06 12:45:10 +03:00
find . -name '*~' -exec rm {} ';'
.PHONY: distclean
distclean: clean
.PHONY: upload
upload: ${DEB}
tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload --product pve --dist buster