1 include /usr
/share
/dpkg
/default.mk
6 BUILDDIR ?
= $(PACKAGE
)-$(DEB_VERSION_UPSTREAM
)
7 ORIG_SRC_TAR
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM
).orig.
tar.gz
9 GITVERSION
:=$(shell git rev-parse HEAD
)
11 DSC
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM_REVISION
).dsc
12 DEB
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM_REVISION
)_
$(DEB_HOST_ARCH
).deb
13 DBGDEB
=$(PACKAGE
)-dbgsym_
$(DEB_VERSION_UPSTREAM_REVISION
)_
$(DEB_HOST_ARCH
).deb
20 test -f
"$(SRCDIR)/README" || git submodule update
--init
21 $(SRCDIR
)/README
: submodule
23 $(BUILDDIR
): $(SRCDIR
)/README debian
25 rsync
-a
$(SRCDIR
)/ debian
$(BUILDDIR
)
26 echo
"git clone git://git.proxmox.com/git/lxcfs.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR
)/debian
/SOURCE
32 cd
$(BUILDDIR
); dpkg-buildpackage
-rfakeroot
-b
-us
-uc
38 $(ORIG_SRC_TAR
): $(BUILDDIR
)
39 tar czf
$(ORIG_SRC_TAR
) --exclude
="$(BUILDDIR)/debian" $(BUILDDIR
)
47 $(DSC
): $(ORIG_SRC_TAR
) $(BUILDDIR
)
48 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-us
-uc
-d
51 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
53 tar cf
- $(DEBS
) | ssh repoman@repo.proxmox.com upload
--product pve
--dist $(UPLOAD_DIST
)
55 .PHONY
: clean distclean
57 rm -rf
$(PACKAGE
)-[0-9]*/
58 rm -rf
$(PACKAGE
)*.
tar* *.deb
*.dsc
*.changes
*.dsc
*.buildinfo
*.build
61 git submodule deinit
--all