1 include /usr
/share
/dpkg
/default.mk
3 PACKAGE
=libpve-apiclient-perl
5 BUILDSRC
:= $(PACKAGE
)-$(DEB_VERSION
)
6 DEB
=$(PACKAGE
)_
$(DEB_VERSION
)_all.deb
7 DSC
=$(PACKAGE
)_
$(DEB_VERSION
).dsc
10 PERL5DIR
=$(DESTDIR
)/usr
/share
/perl5
11 DOCDIR
=$(DESTDIR
)/usr
/share
/doc
/$(PACKAGE
)
13 GITVERSION
:=$(shell git rev-parse HEAD
)
21 echo
"git clone git://git.proxmox.com/git/pve-apiclient.git\\ngit checkout $(GITVERSION)" >$@.tmp
/debian
/SOURCE
25 deb
$(DEB
): $(BUILDSRC
)
26 cd
$(BUILDSRC
); dpkg-buildpackage
-b
-us
-uc
32 cd
$(BUILDSRC
); dpkg-buildpackage
-S
-us
-uc
-d
39 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
41 tar cf
- $(DEB
) | ssh
-X repoman@repo.proxmox.com upload
--product pmg
,pve
--dist $(UPLOAD_DIST
)
45 rm -rf
$(PACKAGE
)-[0-9]*/ *.deb
*.changes
*.buildinfo
*.build
*.dsc
*.
tar.
*