Introduce IMAGEDIR to control where the image gets built.
authorniklas <niklas@openbsd.org>
Sat, 3 May 1997 16:50:56 +0000 (16:50 +0000)
committerniklas <niklas@openbsd.org>
Sat, 3 May 1997 16:50:56 +0000 (16:50 +0000)
  Fix argument to vnconfig -u.

distrib/simpleroot/Makefile

index 6eb6cf9..9422be0 100644 (file)
@@ -13,8 +13,9 @@ VND_DEV=      /dev/${VND}a
 VND_RDEV=      /dev/r${VND}a
 DISKTYPE=      simpleroot
 PID!=          echo $$$$
-REALIMAGE!=    echo /var/tmp/image.${PID}
-IMAGE?=                /var/tmp/simpleroot${REV}.fs
+IMAGEDIR?=     /var/tmp
+REALIMAGE!=    echo ${IMAGEDIR}/image.${PID}
+IMAGE?=                ${IMAGEDIR}/simpleroot${REV}.fs
 NEWFSOPTS?=
 
 LIST=          ${ARCHDIR}/list
@@ -41,12 +42,12 @@ all:
          tar xpf - ) && \
        ( cd ${MOUNT_POINT} && \
        tar cf - .??* * | ${GZIP} ${GZIPFLAGS} \
-         > /var/tmp/simpleroot${REV}.tar${GZIPEXT} )
+         > ${IMAGEDIR}/simpleroot${REV}.tar${GZIPEXT} )
        @echo ""
        @df -i ${MOUNT_POINT}
        @echo ""
        umount ${MOUNT_POINT}
-       vnconfig -u ${VND_DEV}
+       vnconfig -u ${VND}
        cat /*bin/* > /dev/null
        cp ${REALIMAGE} ${IMAGE}
 .if (${GZIP} == "gzip")