]> git.proxmox.com Git - ifupdown-pve.git/blame - Makefile
docs, buildsys: expand on how to pull updates
[ifupdown-pve.git] / Makefile
CommitLineData
48f2a0f2 1include /usr/share/dpkg/default.mk
13379fb3
TL
2
3PACKAGE=ifupdown
4
5SRCDIR=src
6UPSTREAM=https://salsa.debian.org/debian/ifupdown.git
7BUILDDIR=$(SRCDIR)-$(DEB_VERSION_UPSTREAM)
8
48f2a0f2
TL
9DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_$(DEB_BUILD_ARCH).deb
10DBG_DEB=$(PACKAGE)-dbgsym_$(DEB_VERSION_UPSTREAM_REVISION)_$(DEB_BUILD_ARCH).deb
11DEBS=$(DEB) $(DBG_DEB)
13379fb3
TL
12
13all: $(DEB)
14 @echo $(DEB)
15
30cbcf17 16.PHONY: deb upload distclean clean dinstall
13379fb3
TL
17
18buildir: $(BUILDDIR)
19$(BUILDDIR):
20 rm -rf $(BUILDDIR) $(BUILDDIR).tmp
21 cp -a $(SRCDIR)/ $(BUILDDIR).tmp
22 mv $(BUILDDIR).tmp $(BUILDDIR)
23
24deb: $(DEB)
48f2a0f2 25$(DEB) $(DBG_DEB): $(BUILDDIR)
13379fb3 26 cd $(BUILDDIR); dpkg-buildpackage -rfakeroot -b -uc -us
070ea4a4 27 lintian $(DEBS)
13379fb3 28
48f2a0f2
TL
29upload: $(DEBS)
30 tar cf - $(DEBS) | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist bullseye
13379fb3
TL
31
32distclean: clean
33clean:
a90177fa 34 rm -rf $(SRCDIR)-*/ *.deb *.changes *.dsc *.buildinfo
13379fb3
TL
35
36dinstall: deb
37 dpkg -i $(DEB)