]> git.proxmox.com Git - pve2-api-doc.git/blob - Makefile
update to latest version
[pve2-api-doc.git] / Makefile
1 RELEASE=2.0
2
3 VERSION=2.0
4 PKGREL=8
5
6 PACKAGE=pve2-api-doc
7
8 ARCH=all
9 DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
10
11 all: ${DEB}
12
13 .PHONY: dinstall
14 dinstall: deb
15 dpkg -i ${DEB}
16
17
18 .PHONY: deb
19 deb ${DEB}:
20 rm -rf build
21 rsync -a --exclude .svn data/ build
22 rsync -a --exclude .svn debian/ build/debian
23 cd build; dpkg-buildpackage -rfakeroot -b -us -uc
24 lintian ${DEB}
25
26 .PHONY: clean
27 clean:
28 rm -rf *~ */*~ *.deb *.changes build ${PACKAGE}-*.tar.gz
29
30 .PHONY: distclean
31 distclean: clean
32
33
34 .PHONY: upload
35 upload: ${DEB}
36 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
37 mkdir -p /pve/${RELEASE}/extra
38 rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb
39 rm -f /pve/${RELEASE}/extra/Packages*
40 cp ${DEB} /pve/${RELEASE}/extra
41 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
42 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
43