]> git.proxmox.com Git - pmg-api.git/blob - Makefile
MailTracker: handle before queue status
[pmg-api.git] / Makefile
1 include /usr/share/dpkg/pkg-info.mk
2
3 PACKAGE=pmg-api
4
5 BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
6
7 DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
8
9 REPOID = $(shell git rev-parse --short=8 HEAD)
10
11 export PACKAGE
12 export REPOID
13 export PMGVERSION=${DEB_VERSION_UPSTREAM_REVISION}
14 export PMGRELEASE=${DEB_VERSION_UPSTREAM}
15
16 .PHONY: deb
17 deb ${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
25 upload: ${DEB}
26 tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch
27
28 .PHONY: check
29 check:
30 make -C tests check
31
32 .PHONY: clean distclean
33 distclean: clean
34 clean:
35 rm -rf *.deb *.changes *.buildinfo ${BUILDDIR} ${PACKAGE}*.tar.gz *.dsc
36 find . -name '*~' -exec rm {} ';'
37
38 .PHONY: dinstall
39 dinstall: ${DEB}
40 dpkg -i ${DEB}