]> git.proxmox.com Git - pmg-api.git/blame_incremental - Makefile
reinject_email: fix connecting for ipv6-only hosts
[pmg-api.git] / Makefile
... / ...
CommitLineData
1include /usr/share/dpkg/pkg-info.mk
2
3PACKAGE=pmg-api
4
5BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
6
7DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
8
9REPOID = $(shell git rev-parse --short=8 HEAD)
10
11export PACKAGE
12export REPOID
13export PMGVERSION=${DEB_VERSION_UPSTREAM_REVISION}
14export PMGRELEASE=${DEB_VERSION_UPSTREAM}
15
16.PHONY: deb
17deb ${DEB}:
18 rm -rf ${BUILDDIR}
19 rsync -a src/ debian ${BUILDDIR}
20 cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
21 lintian ${DEB}
22
23
24.PHONY: upload
25upload: ${DEB}
26 tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch
27
28.PHONY: check
29check:
30 make -C tests check
31
32.PHONY: clean distclean
33distclean: clean
34clean:
35 rm -rf *.deb *.changes *.buildinfo ${BUILDDIR} ${PACKAGE}*.tar.gz *.dsc
36 find . -name '*~' -exec rm {} ';'
37
38.PHONY: dinstall
39dinstall: ${DEB}
40 dpkg -i ${DEB}