]> git.proxmox.com Git - ifupdown-pve.git/blame - Makefile
Merge commit '6f248ce102a57aa6561dd42e23ba407d37d0baca' as 'src'
[ifupdown-pve.git] / Makefile
CommitLineData
13379fb3
TL
1include /usr/share/dpkg/pkg-info.mk
2
3PACKAGE=ifupdown
4
5SRCDIR=src
6UPSTREAM=https://salsa.debian.org/debian/ifupdown.git
7BUILDDIR=$(SRCDIR)-$(DEB_VERSION_UPSTREAM)
8
9DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
10
11all: $(DEB)
12 @echo $(DEB)
13
14.PHONY: update-subtree deb upload distclean clean dinstall
15
16update-subtree:
17 git subtree fetch $(UPSTREAM) master
18 @printf "\nSubtree fetched, to merge in changes use something like:\n\n"\
19 "\tgit subtree pull -P src --squash $(UPSTREAM) master\n"
20
21buildir: $(BUILDDIR)
22$(BUILDDIR):
23 rm -rf $(BUILDDIR) $(BUILDDIR).tmp
24 cp -a $(SRCDIR)/ $(BUILDDIR).tmp
25 mv $(BUILDDIR).tmp $(BUILDDIR)
26
27deb: $(DEB)
28$(DEB): $(BUILDDIR)
29 cd $(BUILDDIR); dpkg-buildpackage -rfakeroot -b -uc -us
30
31upload: $(DEB)
32 tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist bullseye
33
34distclean: clean
35clean:
36 rm -rf $(PACKAGE)-*/ *.deb *.changes *.dsc *.buildinfo
37
38dinstall: deb
39 dpkg -i $(DEB)