5 ARCH
:=$(shell dpkg-architecture
-qDEB_BUILD_ARCH
)
6 GITVERSION
:=$(shell cat .git
/refs
/heads
/master
)
8 DEB
=${PACKAGE}_
${PKGVER}-${PKGREL}_
${ARCH}.deb
9 DBG_DEB
=${PACKAGE}-dbg_
${PKGVER}-${PKGREL}_
${ARCH}.deb
13 all: ${DEB} ${DBG_DEB}
16 gcc
-Wall cpgtest.c
$(shell pkg-config
--cflags --libs libcpg libqb
) -o cpgtest
23 deb
${DEB} ${DBG_DEB}:
26 rsync
-a
--exclude .svn data
/ build
27 cp
-a debian build
/debian
28 echo
"git clone git://git.proxmox.com/git/pve-cluster.git\\ngit checkout ${GITVERSION}" > build
/debian
/SOURCE
29 cd build
; .
/autogen.sh
30 cd build
; dpkg-buildpackage
-rfakeroot
-b
-us
-uc
35 upload
: ${DEB} ${DBG_DEB}
36 tar cf
- ${DEB} ${DBG_DEB}| ssh repoman@repo.proxmox.com upload
40 rm -rf
*~ build
*_
${ARCH}.deb
*.changes
*.dsc
${CSDIR}