1 include /usr
/share
/dpkg
/pkg-info.mk
6 BUILDDIR
=$(SRCDIR
)-$(DEB_VERSION
)
8 GITVERSION
:=$(shell git rev-parse HEAD
)
10 ORIG_SRC_TAR
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM
).orig.
tar.gz
11 DSC
=$(PACKAGE
)_
$(DEB_VERSION
).dsc
12 DEB
=$(PACKAGE
)_
$(DEB_VERSION
)_all.deb
19 test -f
"$(SRCDIR)/debian/changelog" || git submodule update
--init
22 $(BUILDDIR
): submodule
24 cp
-a
$(SRCDIR
)/ $@.tmp
/
32 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-uc
-us
34 $(ORIG_SRC_TAR
): $(BUILDDIR
)
35 tar czf
$(ORIG_SRC_TAR
) --exclude
="$(BUILDDIR)/debian" $(BUILDDIR
)
38 $(DSC
): $(BUILDDIR
) $(ORIG_SRC_TAR
)
39 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-uc
-us
-d
45 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
47 tar cf
- $(DEB
) | ssh
-X repoman@repo.proxmox.com
-- upload
--product pve
,pmg
,pbs
--dist $(UPLOAD_DIST
)
49 .PHONY
: distclean clean
52 rm -rf
$(PACKAGE
)-*/ *.deb
*.dsc
*.changes
*.buildinfo
*.build
$(PACKAGE
)*.
tar.
*