1 include /usr
/share
/dpkg
/pkg-info.mk
3 PACKAGE
=proxmox-widget-toolkit
5 DEB
=$(PACKAGE
)_
$(DEB_VERSION
)_all.deb
6 DEV_DEB
=$(PACKAGE
)-dev_
$(DEB_VERSION
)_all.deb
9 DSC
=$(PACKAGE
)_
$(DEB_VERSION
).dsc
11 BUILDDIR ?
= $(PACKAGE
)-$(DEB_VERSION_UPSTREAM
)
13 $(BUILDDIR
): GITVERSION
:=$(shell git rev-parse HEAD
)
15 rm -rf
$(BUILDDIR
) $(BUILDDIR
).tmp
16 cp
-a src
/ $(BUILDDIR
).tmp
17 cp
-a debian
$(BUILDDIR
).tmp
/
18 echo
"git clone git://git.proxmox.com/git/proxmox-widget-toolkit.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR
).tmp
/debian
/SOURCE
19 mv
$(BUILDDIR
).tmp
/ $(BUILDDIR
)
24 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-us
-uc
34 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-us
-uc
-d
44 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
46 tar cf
- $(DEB
) | ssh
-X repoman@repo.proxmox.com
-- upload
--product pve
,pmg
,pbs
--dist $(UPLOAD_DIST
)
47 tar cf
- $(DEV_DEB
) | ssh
-X repoman@repo.proxmox.com
-- upload
--product devel
--dist $(UPLOAD_DIST
)
52 rm -rf
$(PACKAGE
)-[0-9]*/ *.
tar.
* *.dsc
*.deb
*.changes
*.buildinfo
*.build