From 5f87b1a8c6a70d1837331ad3e16868ca0f479761 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 29 Apr 2019 15:56:27 +0000 Subject: TOPDIR and TOP are not neccessary. --- distrib/landisk/ramdisk/Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'distrib/landisk') diff --git a/distrib/landisk/ramdisk/Makefile b/distrib/landisk/ramdisk/Makefile index 94873a81954..901978cb147 100644 --- a/distrib/landisk/ramdisk/Makefile +++ b/distrib/landisk/ramdisk/Makefile @@ -1,6 +1,4 @@ -# $OpenBSD: Makefile,v 1.24 2019/04/29 01:48:40 deraadt Exp $ - -TOP= ${.CURDIR}/.. +# $OpenBSD: Makefile,v 1.25 2019/04/29 15:56:25 deraadt Exp $ IMAGE= mr.fs CRUNCHCONF?= instbin.conf @@ -30,7 +28,7 @@ ${IMAGE}: instbin rm -rf $@.d install -d -o root -g wheel $@.d mtree -def ${MTREE} -p $@.d -u - TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} OSrev=${OSrev} \ + CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} OSrev=${OSrev} \ TARGDIR=$@.d UTILS=${UTILS} RELEASEDIR=${RELEASEDIR} \ sh ${UTILS}/runlist.sh ${LISTS} rm $@.d/instbin @@ -39,9 +37,9 @@ ${IMAGE}: instbin .endif bsd: - cd ${TOP}/../../sys/arch/landisk/compile/RAMDISK && \ + cd ${.CURDIR}/../../../sys/arch/landisk/compile/RAMDISK && \ su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE}' - cp -p ${TOP}/../../sys/arch/landisk/compile/RAMDISK/obj/bsd bsd + cp -p ${.CURDIR}/../../../sys/arch/landisk/compile/RAMDISK/obj/bsd bsd .ifdef RELEASEDIR install: -- cgit v1.2.3