]>
Commit | Line | Data |
---|---|---|
de81c147 | 1 | VERSION=1.0 |
f76a2828 | 2 | PACKAGE=pve-container |
21078664 | 3 | PKGREL=94 |
f76a2828 DM |
4 | |
5 | GITVERSION:=$(shell cat .git/refs/heads/master) | |
6 | ||
7 | ARCH:=all | |
8 | ||
9 | DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb | |
10 | ||
11 | all: ${DEB} | |
12 | ||
13 | .PHONY: dinstall | |
14 | dinstall: ${DEB} | |
15 | dpkg -i ${DEB} | |
16 | ||
6535fcdb | 17 | .PHONY: deb |
a3fe0ccf WB |
18 | deb: ${DEB} |
19 | ${DEB}: | |
f76a2828 DM |
20 | rm -rf build |
21 | mkdir build | |
22 | rsync -a src/ build | |
23 | rsync -a debian/ build/debian | |
24 | echo "git clone git://git.proxmox.com/git/pve-container\\ngit checkout ${GITVERSION}" > build/debian/SOURCE | |
25 | cd build; dpkg-buildpackage -rfakeroot -b -us -uc | |
26 | lintian ${DEB} | |
27 | ||
28 | .PHONY: clean | |
29 | clean: | |
30 | make -C src clean | |
31 | rm -rf build *.deb ${PACKAGE}-*.tar.gz *.changes | |
32 | find . -name '*~' -exec rm {} ';' | |
33 | ||
34 | .PHONY: distclean | |
35 | distclean: clean | |
36 | ||
37 | .PHONY: upload | |
38 | upload: ${DEB} | |
c9c3758d | 39 | tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload |