]>
Commit | Line | Data |
---|---|---|
fe000966 DM |
1 | RELEASE=2.0 |
2 | ||
3 | PACKAGE=pve-cluster | |
4 | PKGVER=1.0 | |
a665376e | 5 | PKGREL=12 |
fe000966 DM |
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 | |
5d7679ac | 28 | lintian ${DEB} |
fe000966 DM |
29 | |
30 | ||
31 | .PHONY: upload | |
32 | upload: ${DEB} | |
33 | umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw | |
34 | mkdir -p /pve/${RELEASE}/extra | |
35 | rm -f /pve/${RELEASE}/extra/${PACKAGE}*.deb | |
36 | rm -f /pve/${RELEASE}/extra/Packages* | |
37 | cp ${DEB} /pve/${RELEASE}/extra | |
38 | cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz | |
39 | umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro | |
40 | ||
41 | .PHONY: clean | |
42 | clean: | |
43 | rm -rf *~ build *_${ARCH}.deb *.changes *.dsc ${CSDIR} |