]> git.proxmox.com Git - ifupdown2.git/blame - Makefile
patch: patch5: fix code nit
[ifupdown2.git] / Makefile
CommitLineData
1d5643c4
TL
1include /usr/share/dpkg/pkg-info.mk
2
51419183 3PACKAGE=ifupdown2
51419183
AD
4
5SRCDIR=ifupdown2
6e7ad15f 6BUILDDIR=$(SRCDIR)-$(DEB_VERSION_UPSTREAM)
51419183 7
51419183
AD
8GITVERSION:=$(shell git rev-parse HEAD)
9
6e7ad15f 10DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
51419183 11
6e7ad15f
TL
12all: $(DEB)
13 @echo $(DEB)
51419183
AD
14
15.PHONY: submodule
16submodule:
6e7ad15f 17 test -f "$(SRCDIR)/debian/changelog" || git submodule update --init
51419183 18
6e7ad15f
TL
19buildir: $(BUILDDIR)
20$(BUILDDIR): submodule
51419183 21 rm -rf $(BUILDDIR)
7b2bbdf7
WB
22 mkdir $(BUILDDIR)
23 cp -a $(SRCDIR)/* $(BUILDDIR)/
24 cp -R debian/* $(BUILDDIR)/debian/
08415f37
TL
25
26.PHONY: deb
6e7ad15f
TL
27deb: $(DEB)
28$(DEB): $(BUILDDIR)
29 cd $(BUILDDIR); dpkg-buildpackage -rfakeroot -b -uc -us
51419183 30
51419183 31.PHONY: upload
6e7ad15f
TL
32upload: $(DEB)
33 tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist bullseye
51419183 34
6e7ad15f 35.PHONY: distclean clean
51419183 36distclean: clean
51419183 37clean:
6e7ad15f 38 rm -rf $(PACKAGE)-*/ *.deb *.changes *.dsc *.buildinfo
51419183
AD
39
40.PHONY: dinstall
41dinstall: deb
6e7ad15f 42 dpkg -i $(DEB)