]> git.proxmox.com Git - pve-cluster.git/blob - Makefile
imported from svn 'pve-cluster/trunk'
[pve-cluster.git] / Makefile
1 RELEASE=2.0
2
3 PACKAGE=pve-cluster
4 PKGVER=1.0
5 PKGREL=7
6
7 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
8
9 DEB=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb
10
11
12 all: ${DEB}
13
14 cpgtest: cpgtest.c
15 gcc -Wall cpgtest.c $(shell pkg-config --cflags --libs libcpg libcoroipcc) -o cpgtest
16
17 .PHONY: dinstall
18 dinstall: ${DEB}
19 dpkg -i ${DEB}
20
21 .PHONY: ${DEB}
22 ${DEB}:
23 rm -rf build
24 rsync -a --exclude .svn data/ build
25 cp -a debian build/debian
26 cd build; ./autogen.sh
27 cd build; dpkg-buildpackage -rfakeroot -b -us -uc
28
29
30 .PHONY: upload
31 upload: ${DEB}
32 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
33 mkdir -p /pve/${RELEASE}/extra
34 rm -f /pve/${RELEASE}/extra/${PACKAGE}*.deb
35 rm -f /pve/${RELEASE}/extra/Packages*
36 cp ${DEB} /pve/${RELEASE}/extra
37 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
38 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
39
40 .PHONY: clean
41 clean:
42 rm -rf *~ build *_${ARCH}.deb *.changes *.dsc ${CSDIR}