1 include /usr
/share
/dpkg
/pkg-info.mk
5 BUILDDIR ?
= $(PACKAGE
)-$(DEB_VERSION
)
7 DSC
=$(PACKAGE
)_
$(DEB_VERSION
).dsc
8 DEB
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM_REVISION
)_all.deb
10 REPOID
= $(shell git rev-parse
--short
=8 HEAD
)
14 export PMGVERSION
= $(DEB_VERSION_UPSTREAM_REVISION
)
15 export PMGRELEASE
= $(shell echo
$(DEB_VERSION_UPSTREAM
) | cut
-c
1-3)
17 $(BUILDDIR
): src debian
26 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-us
-uc
30 rm -rf
$(BUILDDIR
) $(DSC
)
34 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-us
-uc
-d
40 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
42 tar cf
- $(DEB
) | ssh
-X repoman@repo.proxmox.com
-- upload
--product pmg
--dist $(UPLOAD_DIST
)
46 $(MAKE
) -C src
/tests
check
48 .PHONY
: clean distclean
51 rm -rf
$(PACKAGE
)-[0-9]*/
52 rm -rf
*.deb
*.changes
*.build
*.buildinfo
$(PACKAGE
)*tar* *.dsc