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