1 include /usr
/share
/dpkg
/pkg-info.mk
5 BUILDDIR ?
= $(PACKAGE
)-$(DEB_VERSION
)
7 DEB
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM_REVISION
)_all.deb
9 REPOID
= $(shell git rev-parse
--short
=8 HEAD
)
13 export PMGVERSION
= $(DEB_VERSION_UPSTREAM_REVISION
)
14 export PMGRELEASE
= $(shell echo
$(DEB_VERSION_UPSTREAM
) | cut
-c
1-3)
16 $(BUILDDIR
): src debian
25 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-us
-uc
29 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
31 tar cf
- $(DEB
) | ssh
-X repoman@repo.proxmox.com
-- upload
--product pmg
--dist $(UPLOAD_DIST
)
35 make
-C src
/tests
check
37 .PHONY
: clean distclean
40 rm -rf
*.deb
*.changes
*.buildinfo
$(BUILDDIR
) $(PACKAGE
)*.
tar.gz
*.dsc