1 include /usr
/share
/dpkg
/pkg-info.mk
3 PACKAGE
=libpve-common-perl
7 BUILDDIR ?
= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
9 DEB
=${PACKAGE}_
${DEB_VERSION_UPSTREAM_REVISION}_
${ARCH}.deb
10 DSC
=${PACKAGE}_
${DEB_VERSION_UPSTREAM_REVISION}.dsc
19 ${BUILDDIR}: src debian
test
20 rm -rf
${BUILDDIR} ${BUILDDIR}.tmp
; mkdir
${BUILDDIR}.tmp
21 cp
-a
-t
${BUILDDIR}.tmp
$^ Makefile
22 echo
"git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout $(shell git rev-parse HEAD)" > ${BUILDDIR}.tmp
/debian
/SOURCE
23 mv
${BUILDDIR}.tmp
${BUILDDIR}
28 cd
${BUILDDIR}; dpkg-buildpackage
-b
-us
-uc
34 cd
${BUILDDIR}; dpkg-buildpackage
-S
-us
-uc
-d
40 .PHONY
: clean distclean
43 rm -rf
*~
*.deb
*.changes
${PACKAGE}-[0-9]*/ *.buildinfo
*.build
*.dsc
*.
tar.?z
51 ${MAKE} -C src
install
54 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
56 tar cf
- ${DEB}|ssh
-X repoman@repo.proxmox.com
-- upload
--product pve
,pmg
--dist $(UPLOAD_DIST
)