1 include /usr
/share
/dpkg
/pkg-info.mk
3 PACKAGE
=libpve-http-server-perl
5 GITVERSION
:=$(shell git rev-parse HEAD
)
6 BUILDDIR ?
= $(PACKAGE
)-$(DEB_VERSION
)
8 DSC
=$(PACKAGE
)_
$(DEB_VERSION
).dsc
9 DEB
=$(PACKAGE
)_
$(DEB_VERSION
)_all.deb
13 $(BUILDDIR
): src debian
17 echo
"git clone git://git.proxmox.com/git/pve-http-server\\ngit checkout $(GITVERSION)" > $@.tmp
/debian
/SOURCE
23 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-us
-uc
29 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-us
-uc
36 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
38 tar cf
- $(DEB
) | ssh
-X repoman@repo.proxmox.com
-- upload
--product pve
,pmg
--dist $(UPLOAD_DIST
)
40 .PHONY
: clean distclean
46 rm -rf
$(PACKAGE
)-*/ *.deb
*.dsc
*.
tar.
* *.changes
*.build
*.buildinfo examples
/simple-demo.lck