]>
Commit | Line | Data |
---|---|---|
39df71df | 1 | RELEASE=3.1 |
fe000966 DM |
2 | |
3 | PACKAGE=pve-cluster | |
060a989f | 4 | PKGVER=3.0 |
61f24f84 | 5 | PKGREL=11 |
fe000966 DM |
6 | |
7 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) | |
197d4344 | 8 | GITVERSION:=$(shell cat .git/refs/heads/master) |
fe000966 DM |
9 | |
10 | DEB=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb | |
11 | ||
12 | ||
13 | all: ${DEB} | |
14 | ||
15 | cpgtest: cpgtest.c | |
16 | gcc -Wall cpgtest.c $(shell pkg-config --cflags --libs libcpg libcoroipcc) -o cpgtest | |
17 | ||
18 | .PHONY: dinstall | |
19 | dinstall: ${DEB} | |
20 | dpkg -i ${DEB} | |
21 | ||
22 | .PHONY: ${DEB} | |
23 | ${DEB}: | |
24 | rm -rf build | |
25 | rsync -a --exclude .svn data/ build | |
26 | cp -a debian build/debian | |
197d4344 | 27 | echo "git clone git://git.proxmox.com/git/pve-cluster.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE |
fe000966 DM |
28 | cd build; ./autogen.sh |
29 | cd build; dpkg-buildpackage -rfakeroot -b -us -uc | |
5d7679ac | 30 | lintian ${DEB} |
fe000966 DM |
31 | |
32 | ||
33 | .PHONY: upload | |
34 | upload: ${DEB} | |
35 | umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw | |
36 | mkdir -p /pve/${RELEASE}/extra | |
37 | rm -f /pve/${RELEASE}/extra/${PACKAGE}*.deb | |
38 | rm -f /pve/${RELEASE}/extra/Packages* | |
39 | cp ${DEB} /pve/${RELEASE}/extra | |
40 | cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz | |
41 | umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro | |
42 | ||
43 | .PHONY: clean | |
44 | clean: | |
45 | rm -rf *~ build *_${ARCH}.deb *.changes *.dsc ${CSDIR} |