1 include /usr
/share
/dpkg
/pkg-info.mk
2 include /usr
/share
/dpkg
/architecture.mk
7 BUILDDIR ?
= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
9 GITVERSION
:=$(shell git rev-parse HEAD
)
11 DEB
=${PACKAGE}_
${DEB_VERSION_UPSTREAM_REVISION}_
${DEB_BUILD_ARCH}.deb
12 DBGDEB
=${PACKAGE}-dbgsym_
${DEB_VERSION_UPSTREAM_REVISION}_
${DEB_BUILD_ARCH}.deb
19 test -f
"${SRCDIR}/README" || git submodule update
--init
20 ${SRCDIR}/README
: submodule
22 $(BUILDDIR
): $(SRCDIR
)/README debian
24 rsync
-a
$(SRCDIR
)/ debian
$(BUILDDIR
)
25 echo
"git clone git://git.proxmox.com/git/lxcfs.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR
)/debian
/SOURCE
31 cd
$(BUILDDIR
); dpkg-buildpackage
-rfakeroot
-b
-us
-uc
36 tar cf
- ${DEBS} | ssh repoman@repo.proxmox.com upload
--product pve
--dist stretch
38 .PHONY
: clean distclean
40 rm -rf
$(PACKAGE
)-*/ *.deb
*.changes
*.dsc
*.buildinfo
43 git submodule deinit
--all