]>
Commit | Line | Data |
---|---|---|
1d5643c4 TL |
1 | include /usr/share/dpkg/pkg-info.mk |
2 | ||
51419183 | 3 | PACKAGE=ifupdown2 |
51419183 AD |
4 | |
5 | SRCDIR=ifupdown2 | |
6e7ad15f | 6 | BUILDDIR=$(SRCDIR)-$(DEB_VERSION_UPSTREAM) |
51419183 | 7 | |
51419183 AD |
8 | GITVERSION:=$(shell git rev-parse HEAD) |
9 | ||
6e7ad15f | 10 | DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb |
51419183 | 11 | |
6e7ad15f TL |
12 | all: $(DEB) |
13 | @echo $(DEB) | |
51419183 AD |
14 | |
15 | .PHONY: submodule | |
16 | submodule: | |
6e7ad15f | 17 | test -f "$(SRCDIR)/debian/changelog" || git submodule update --init |
51419183 | 18 | |
6e7ad15f TL |
19 | buildir: $(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 |
27 | deb: $(DEB) |
28 | $(DEB): $(BUILDDIR) | |
29 | cd $(BUILDDIR); dpkg-buildpackage -rfakeroot -b -uc -us | |
51419183 | 30 | |
51419183 | 31 | .PHONY: upload |
6e7ad15f TL |
32 | upload: $(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 | 36 | distclean: clean |
51419183 | 37 | clean: |
6e7ad15f | 38 | rm -rf $(PACKAGE)-*/ *.deb *.changes *.dsc *.buildinfo |
51419183 AD |
39 | |
40 | .PHONY: dinstall | |
41 | dinstall: deb | |
6e7ad15f | 42 | dpkg -i $(DEB) |