]>
Commit | Line | Data |
---|---|---|
13379fb3 TL |
1 | include /usr/share/dpkg/pkg-info.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)_all.deb | |
10 | ||
11 | all: $(DEB) | |
12 | @echo $(DEB) | |
13 | ||
14 | .PHONY: update-subtree deb upload distclean clean dinstall | |
15 | ||
16 | update-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 | ||
21 | buildir: $(BUILDDIR) | |
22 | $(BUILDDIR): | |
23 | rm -rf $(BUILDDIR) $(BUILDDIR).tmp | |
24 | cp -a $(SRCDIR)/ $(BUILDDIR).tmp | |
25 | mv $(BUILDDIR).tmp $(BUILDDIR) | |
26 | ||
27 | deb: $(DEB) | |
28 | $(DEB): $(BUILDDIR) | |
29 | cd $(BUILDDIR); dpkg-buildpackage -rfakeroot -b -uc -us | |
30 | ||
31 | upload: $(DEB) | |
32 | tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist bullseye | |
33 | ||
34 | distclean: clean | |
35 | clean: | |
a90177fa | 36 | rm -rf $(SRCDIR)-*/ *.deb *.changes *.dsc *.buildinfo |
13379fb3 TL |
37 | |
38 | dinstall: deb | |
39 | dpkg -i $(DEB) |