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