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