1 include /usr
/share
/dpkg
/default.mk
5 GITVERSION
:=$(shell git rev-parse HEAD
)
7 BUILDDIR ?
= $(PACKAGE
)-$(DEB_VERSION
)
8 DSC
=$(PACKAGE
)_
$(DEB_VERSION
).dsc
10 PVE_DEB
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM_REVISION
)_all.deb
11 PVE_HEADERS_DEB
=pve-headers_
$(DEB_VERSION_UPSTREAM_REVISION
)_all.deb
13 DEBS
=$(PVE_DEB
) $(PVE_HEADERS_DEB
)
20 mkdir
-p
$@.tmp
/debian
22 echo
"git clone git://git.proxmox.com/git/proxmox-ve.git\\ngit checkout $(GITVERSION)" > $@.tmp
/debian
/SOURCE
25 $(PVE_HEADERS_DEB
): $(PVE_DEB
)
26 $(PVE_DEB
): $(BUILDDIR
)
27 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-uc
-us
36 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-uc
-us
42 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
44 tar cf
- $(DEBS
)|ssh repoman@repo.proxmox.com
-- upload
--product pve
--dist $(UPLOAD_DIST
)
51 rm -rf
*~
$(PACKAGE
)-[0-9]*/ $(PACKAGE
)*.
tar.
* *.deb
*.dsc
*.changes
*.build
*.buildinfo