mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-09 12:42:33 +00:00
buildsys: add DSC & sbuild convenience target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
8df08859c4
commit
739e2a4f04
15
Makefile
15
Makefile
@ -14,6 +14,7 @@ GITVERSION:=$(shell git rev-parse --short=16 HEAD)
|
|||||||
|
|
||||||
BUILDDIR = $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
|
BUILDDIR = $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
|
||||||
|
|
||||||
|
DSC=$(PACKAGE)_$(DEB_VERSION).dsc
|
||||||
DEB=$(PACKAGE)_$(DEB_VERSION)_$(DEB_HOST_ARCH).deb
|
DEB=$(PACKAGE)_$(DEB_VERSION)_$(DEB_HOST_ARCH).deb
|
||||||
|
|
||||||
all: $(SUBDIRS)
|
all: $(SUBDIRS)
|
||||||
@ -37,12 +38,22 @@ $(BUILDDIR):
|
|||||||
echo "REPOID_GENERATED=$(GITVERSION)" > $@.tmp/debian/rules.env
|
echo "REPOID_GENERATED=$(GITVERSION)" > $@.tmp/debian/rules.env
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
.PHONY: deb
|
.PHONY: deb dsc
|
||||||
deb: $(DEB)
|
deb: $(DEB)
|
||||||
$(DEB): $(BUILDDIR)
|
$(DEB): $(BUILDDIR)
|
||||||
cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
|
cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
|
||||||
lintian $(DEB)
|
lintian $(DEB)
|
||||||
|
|
||||||
|
dsc:
|
||||||
|
rm -rf $(BUILDDIR) $(DSC)
|
||||||
|
$(MAKE) $(DSC)
|
||||||
|
lintian $(DSC)
|
||||||
|
$(DSC): $(BUILDDIR)
|
||||||
|
cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
|
||||||
|
|
||||||
|
sbuild: $(DSC)
|
||||||
|
sbuild $<
|
||||||
|
|
||||||
.PHONY: upload
|
.PHONY: upload
|
||||||
upload: $(DEB) check
|
upload: $(DEB) check
|
||||||
# check if working directory is clean
|
# check if working directory is clean
|
||||||
@ -67,5 +78,5 @@ distclean: clean
|
|||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
set -e && for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
|
set -e && for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
|
||||||
rm -f country.dat *.deb *.buildinfo *.changes
|
rm -f $(PACKAGE)*.tar* country.dat *.deb *.dsc *.build *.buildinfo *.changes
|
||||||
rm -rf dest $(PACKAGE)-[0-9]*/
|
rm -rf dest $(PACKAGE)-[0-9]*/
|
||||||
|
Loading…
Reference in New Issue
Block a user