From: Dietmar Maurer Date: Fri, 11 Sep 2015 05:31:15 +0000 (+0200) Subject: adopt/fix Makefile for our build environment X-Git-Url: https://git.proxmox.com/?p=iproute2.git;a=commitdiff_plain;h=c9fc61fd5ee1a440a5bcfd659461c3436cf31683 adopt/fix Makefile for our build environment --- diff --git a/Makefile b/Makefile index b783355..96fa099 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,14 @@ -RELEASE=4.2.0 +RELEASE=4.0 VERSION=4.2.0 -IPRELEASE=1 +PKGREL=1 + DIR=iproute2-${VERSION} SRC=iproute2-${VERSION}.orig.tar.gz +ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) -DEBS= \ - iproute2_${VERSION}-${IPRELEASE}.deb \ +DEBS=iproute2_${VERSION}-${PKGREL}_${ARCH}.deb all: ${DEBS} echo ${DEBS} @@ -27,8 +28,9 @@ download: .PHONY: upload upload: ${DEBS} + umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw mkdir -p /pve/${RELEASE}/extra - rm -f /pve/${RELEASE}/extra/libqb*.deb + rm -f /pve/${RELEASE}/extra/iproute2_*.deb rm -f /pve/${RELEASE}/extra/Packages* cp ${DEBS} /pve/${RELEASE}/extra cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz