]>
Commit | Line | Data |
---|---|---|
f76a2828 | 1 | PACKAGE=pve-container |
3cc03d97 WB |
2 | PKGVER != dpkg-parsechangelog -Sversion | cut -d- -f1 |
3 | PKGREL != dpkg-parsechangelog -Sversion | cut -d- -f2 | |
f76a2828 | 4 | |
0717611b | 5 | GITVERSION:=$(shell git rev-parse HEAD) |
74367edd | 6 | BUILDDIR ?= build |
f76a2828 DM |
7 | |
8 | ARCH:=all | |
9 | ||
3cc03d97 | 10 | DEB=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb |
74367edd | 11 | DSC=${PACKAGE}_${PKGVER}-${PKGREL}.dsc |
f76a2828 DM |
12 | |
13 | all: ${DEB} | |
14 | ||
15 | .PHONY: dinstall | |
16 | dinstall: ${DEB} | |
17 | dpkg -i ${DEB} | |
18 | ||
74367edd TL |
19 | ${BUILDDIR}: |
20 | rm -rf ${BUILDDIR} | |
21 | rsync -a src/ ${BUILDDIR} | |
22 | rsync -a debian ${BUILDDIR}/ | |
23 | echo "git clone git://git.proxmox.com/git/pve-container\\ngit checkout ${GITVERSION}" > build/debian/SOURCE | |
24 | ||
6535fcdb | 25 | .PHONY: deb |
a3fe0ccf | 26 | deb: ${DEB} |
74367edd | 27 | ${DEB}: ${BUILDDIR} |
7ddb81c4 | 28 | cd build; dpkg-buildpackage -b -us -uc |
f76a2828 DM |
29 | lintian ${DEB} |
30 | ||
74367edd TL |
31 | |
32 | .PHONY: dsc | |
33 | dsc: ${DSC} | |
34 | ${DSC}: ${BUILDDIR} | |
35 | cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc | |
36 | lintian ${DSC} | |
37 | ||
f76a2828 DM |
38 | .PHONY: clean |
39 | clean: | |
40 | make -C src clean | |
74367edd | 41 | rm -rf *.deb ${PACKAGE}*.tar.gz *.changes *.buildinfo ${DSC} ${BUILDDIR} |
f76a2828 DM |
42 | find . -name '*~' -exec rm {} ';' |
43 | ||
44 | .PHONY: distclean | |
45 | distclean: clean | |
46 | ||
47 | .PHONY: upload | |
48 | upload: ${DEB} | |
3e32cfe7 | 49 | tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch |