adopt/fix Makefile for our build environment
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 11 Sep 2015 05:31:15 +0000 (07:31 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 11 Sep 2015 05:31:15 +0000 (07:31 +0200)
Makefile

index b783355..96fa099 100644 (file)
--- 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