]>
Commit | Line | Data |
---|---|---|
48f2a0f2 | 1 | include /usr/share/dpkg/default.mk |
13379fb3 TL |
2 | |
3 | PACKAGE=ifupdown | |
4 | ||
5 | SRCDIR=src | |
6 | UPSTREAM=https://salsa.debian.org/debian/ifupdown.git | |
7 | BUILDDIR=$(SRCDIR)-$(DEB_VERSION_UPSTREAM) | |
8 | ||
48f2a0f2 TL |
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) | |
13379fb3 TL |
12 | |
13 | all: $(DEB) | |
14 | @echo $(DEB) | |
15 | ||
30cbcf17 | 16 | .PHONY: deb upload distclean clean dinstall |
13379fb3 TL |
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) | |
48f2a0f2 | 25 | $(DEB) $(DBG_DEB): $(BUILDDIR) |
13379fb3 | 26 | cd $(BUILDDIR); dpkg-buildpackage -rfakeroot -b -uc -us |
070ea4a4 | 27 | lintian $(DEBS) |
13379fb3 | 28 | |
48f2a0f2 TL |
29 | upload: $(DEBS) |
30 | tar cf - $(DEBS) | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist bullseye | |
13379fb3 TL |
31 | |
32 | distclean: clean | |
33 | clean: | |
a90177fa | 34 | rm -rf $(SRCDIR)-*/ *.deb *.changes *.dsc *.buildinfo |
13379fb3 TL |
35 | |
36 | dinstall: deb | |
37 | dpkg -i $(DEB) |