]> git.proxmox.com Git - iproute2.git/blob - Makefile
6506e28be671cb6459ba2bb32895a01615e2bd8d
[iproute2.git] / Makefile
1 PACKAGE=iproute2
2 VER=4.15.0
3 PKGREL=5
4
5 SRCDIR=iproute2
6 BUILDDIR=${SRCDIR}.tmp
7
8 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
9
10 DEBS= \
11 iproute2-doc_${VERSION}-${PKGREL}_all.deb \
12 iproute2_${VERSION}-${PKGREL}_${ARCH}.deb
13
14 all: ${DEBS}
15 echo ${DEBS}
16
17 .PHONY: submodule
18 submodule:
19 test -f "${SRCDIR}/README" || git submodule update --init
20
21 .PHONY: deb
22 ${DEBS} deb: | submodule
23 rm -rf $(BUILDDIR)
24 cp -a $(SRCDIR) $(BUILDDIR)
25 cp -a debian $(BUILDDIR)/debian
26 cd ${BUILDDIR}; dpkg-buildpackage -rfakeroot -b -uc -us
27
28 .PHONY: upload
29 upload: ${DEBS}
30 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
31
32 .PHONY: clean distclean
33 distclean: clean
34 clean:
35 rm -rf ${BUILDDIR} *.deb *.changes *.dsc *.buildinfo
36
37 .PHONY: dinstall
38 dinstall: deb
39 dpkg -i ${DEB}