]>
Commit | Line | Data |
---|---|---|
fe000966 | 1 | PACKAGE=pve-cluster |
89fde9ac | 2 | PKGVER=4.0 |
149bc9ba | 3 | PKGREL=48 |
fe000966 DM |
4 | |
5 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) | |
197d4344 | 6 | GITVERSION:=$(shell cat .git/refs/heads/master) |
fe000966 DM |
7 | |
8 | DEB=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb | |
af75b50f | 9 | DBG_DEB=${PACKAGE}-dbg_${PKGVER}-${PKGREL}_${ARCH}.deb |
fe000966 DM |
10 | |
11 | ||
af75b50f DM |
12 | |
13 | all: ${DEB} ${DBG_DEB} | |
fe000966 DM |
14 | |
15 | cpgtest: cpgtest.c | |
a8bf13d0 | 16 | gcc -Wall cpgtest.c $(shell pkg-config --cflags --libs libcpg libqb) -o cpgtest |
fe000966 DM |
17 | |
18 | .PHONY: dinstall | |
170647bc DM |
19 | dinstall: ${DEB} |
20 | dpkg -i ${DEB} | |
fe000966 | 21 | |
22c1bf56 WB |
22 | .PHONY: deb |
23 | deb ${DEB} ${DBG_DEB}: | |
24 | rm -f *.deb | |
fe000966 DM |
25 | rm -rf build |
26 | rsync -a --exclude .svn data/ build | |
27 | cp -a debian build/debian | |
197d4344 | 28 | echo "git clone git://git.proxmox.com/git/pve-cluster.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE |
fe000966 DM |
29 | cd build; ./autogen.sh |
30 | cd build; dpkg-buildpackage -rfakeroot -b -us -uc | |
5d7679ac | 31 | lintian ${DEB} |
fe000966 DM |
32 | |
33 | ||
34 | .PHONY: upload | |
af75b50f | 35 | upload: ${DEB} ${DBG_DEB} |
e3ea69f4 | 36 | tar cf - ${DEB} ${DBG_DEB}| ssh repoman@repo.proxmox.com upload |
fe000966 DM |
37 | |
38 | .PHONY: clean | |
39 | clean: | |
40 | rm -rf *~ build *_${ARCH}.deb *.changes *.dsc ${CSDIR} |