shithub: 9ferno

Download patch

ref: 1294b382efd796eb31cac4ee0c61b0ee934b1b55
parent: c52aa4936cee1c8a41c53aefe629a25de3560387
author: 9ferno <gophone2015@gmail.com>
date: Tue Jul 27 11:34:08 EDT 2021

fixes to support the change separating SRC and ROOT directories

--- a/Dockerfile	Mon Jul 26 20:52:45 2021
+++ b/Dockerfile	Tue Jul 27 11:34:08 2021
@@ -20,8 +20,8 @@
 echo >>mkconfig SYSTARG=Linux; \
 echo >>mkconfig OBJTYPE=386; \
 echo >>mkconfig 'OBJDIR=$SYSTARG/$OBJTYPE'; \
-echo >>mkconfig '<$ROOT/mkfiles/mkhost-$SYSHOST'; \
-echo >>mkconfig '<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE'
+echo >>mkconfig '<$SRC/mkfiles/mkhost-$SYSHOST'; \
+echo >>mkconfig '<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE'
 
 # build code
 RUN ./makemk.sh
--- a/MacOSX/README	Mon Jul 26 20:52:45 2021
+++ b/MacOSX/README	Tue Jul 27 11:34:08 2021
@@ -63,7 +63,7 @@
 
 The following modification was added to various 'mkfile' to support required redefinition of varios core functions.
 
-	<$ROOT/mkfiles/mkalloc-$SYSHOST-$OBJTYPE
+	<$SRC/mkfiles/mkalloc-$SYSHOST-$OBJTYPE
 
 Some of the base libraries and utils will have *.pbproj files which were used to bootstrap the initial build system on Mac OS X (Public Beta).
 
--- a/appl/cmd/mk/mkconfig	Mon Jul 26 20:52:45 2021
+++ b/appl/cmd/mk/mkconfig	Tue Jul 27 11:34:08 2021
@@ -24,5 +24,5 @@
 #
 OBJDIR=$SYSTARG/$OBJTYPE
 
-<$ROOT/mkfiles/mkhost-$SYSHOST			# variables appropriate for host system
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	# variables used to build target object type
+<$SRC/mkfiles/mkhost-$SYSHOST			# variables appropriate for host system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	# variables used to build target object type
--- a/emu/AIX/mkfile	Mon Jul 26 20:52:45 2021
+++ b/emu/AIX/mkfile	Tue Jul 27 11:34:08 2021
@@ -14,7 +14,7 @@
 
 X11LIBS= -lX11 -lXext
 
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
 
 <| $SHELLNAME ../port/mkdevlist $CONF	#sets $IP, $DEVS, $PORT, $LIBS
 <mkfile-$OBJTYPE
--- a/emu/DragonFly/mkfile	Mon Jul 26 20:52:45 2021
+++ b/emu/DragonFly/mkfile	Tue Jul 27 11:34:08 2021
@@ -14,7 +14,7 @@
 
 #end configurable parameters
 
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
 
 <| $SHELLNAME ../port/mkdevlist $CONF	#sets $IP, $DEVS, $PORT, $LIBS
 
--- a/emu/FreeBSD/mkfile	Mon Jul 26 20:52:45 2021
+++ b/emu/FreeBSD/mkfile	Tue Jul 27 11:34:08 2021
@@ -12,7 +12,7 @@
 
 X11LIBS= -lX11 -lXext
 
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
 
 <| $SHELLNAME ../port/mkdevlist $CONF	#sets $IP, $DEVS, $PORT, $LIBS
 
--- a/emu/Irix/mkfile	Mon Jul 26 20:52:45 2021
+++ b/emu/Irix/mkfile	Tue Jul 27 11:34:08 2021
@@ -14,7 +14,7 @@
 
 #end configurable parameters
 
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
 
 <| $SHELLNAME ../port/mkdevlist $CONF	#sets $IP, $DEVS, $PORT, $LIBS
 
--- a/emu/Linux/mkfile	Mon Jul 26 20:52:45 2021
+++ b/emu/Linux/mkfile	Tue Jul 27 11:34:08 2021
@@ -10,7 +10,7 @@
 
 X11LIBS= -lX11 -lXext	# can remove or override using env section in config files
 
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
 
 <| $SHELLNAME ../port/mkdevlist $CONF	#sets $IP, $DEVS, $PORT, $LIBS
 <mkfile-$OBJTYPE	# sets $ARCHFILES
--- a/emu/MacOSX/mkfile	Mon Jul 26 20:52:45 2021
+++ b/emu/MacOSX/mkfile	Tue Jul 27 11:34:08 2021
@@ -12,7 +12,7 @@
 
 #end configurable parameters
 
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
 
 <| $SHELLNAME ../port/mkdevlist $CONF	#sets $IP, $DEVS, $PORT, $LIBS
 
--- a/emu/MacOSX/mkfile-g	Mon Jul 26 20:52:45 2021
+++ b/emu/MacOSX/mkfile-g	Tue Jul 27 11:34:08 2021
@@ -12,7 +12,7 @@
 
 #end configurable parameters
 
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
 
 <| $SHELLNAME ../port/mkdevlist $CONF	#sets $IP, $DEVS, $PORT, $LIBS
 
--- a/emu/MacOSX/mkfile-x11	Mon Jul 26 20:52:45 2021
+++ b/emu/MacOSX/mkfile-x11	Tue Jul 27 11:34:08 2021
@@ -12,7 +12,7 @@
 
 #end configurable parameters
 
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
 
 <| $SHELLNAME ../port/mkdevlist $CONF	#sets $IP, $DEVS, $PORT, $LIBS
 
--- a/emu/NetBSD/mkfile	Mon Jul 26 20:52:45 2021
+++ b/emu/NetBSD/mkfile	Tue Jul 27 11:34:08 2021
@@ -13,7 +13,7 @@
 # can remove or override X11LIBS using env section in config files
 X11LIBS= -L/usr/X11R7/lib -R/usr/X11R7/lib -lXext -lX11
 
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
 
 <| $SHELLNAME ../port/mkdevlist $CONF	#sets $IP, $DEVS, $PORT, $LIBS
 
--- a/emu/Nt/mkfile	Mon Jul 26 20:52:45 2021
+++ b/emu/Nt/mkfile	Tue Jul 27 11:34:08 2021
@@ -18,7 +18,7 @@
 
 OSX=os
 
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
 
 <| $SHELLNAME ../port/mkdevlist $CONF	#sets $IP, $DEVS, $PORT, $LIBS
 
--- a/emu/OpenBSD/mkfile	Mon Jul 26 20:52:45 2021
+++ b/emu/OpenBSD/mkfile	Tue Jul 27 11:34:08 2021
@@ -8,7 +8,7 @@
 
 INSTALLDIR=$ROOT/$SYSTARG/$OBJTYPE/bin	#path of directory where kernel is installed
 
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
 
 <| $SHELLNAME ../port/mkdevlist $CONF	#sets $IP, $DEVS, $PORT, $LIBS
 
@@ -24,7 +24,7 @@
 
 HFILES=\
 
-CFLAGS='-DROOT="'$ROOT'"' -DEMU -I. -I../port -I$ROOT/$SYSTARG/$OBJTYPE/include -I$ROOT/include -I$ROOT/libinterp $CTHREADFLAGS $CFLAGS $EMUOPTIONS
+CFLAGS='-DROOT="'$ROOT'"' -DEMU -I. -I../port -I$SRC/$SYSTARG/$OBJTYPE/include -I$SRC/include -I$SRC/libinterp $CTHREADFLAGS $CFLAGS $EMUOPTIONS
 SYSLIBS= -lm -lX11 -lXext -lossaudio -lpthread
 KERNDATE=`{$NDATE}
 
--- a/emu/Plan9/mkfile	Mon Jul 26 20:52:45 2021
+++ b/emu/Plan9/mkfile	Tue Jul 27 11:34:08 2021
@@ -12,7 +12,7 @@
 
 #end configurable parameters
 
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
 
 <| $SHELLNAME ../port/mkdevlist $CONF	#sets $IP, $DEVS, $PORT, $LIBS
 
--- a/emu/Solaris/mkfile	Mon Jul 26 20:52:45 2021
+++ b/emu/Solaris/mkfile	Tue Jul 27 11:34:08 2021
@@ -14,7 +14,7 @@
 
 #end configurable parameters
 
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
 
 <| $SHELLNAME ../port/mkdevlist $CONF	#sets $IP, $DEVS, $PORT, $LIBS
 
--- a/emu/Unixware/mkfile	Mon Jul 26 20:52:45 2021
+++ b/emu/Unixware/mkfile	Tue Jul 27 11:34:08 2021
@@ -14,7 +14,7 @@
 
 #end configurable parameters
 
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
 
 <| $SHELLNAME ../port/mkdevlist $CONF	#sets $IP, $DEVS, $PORT, $LIBS
 
--- a/lib/emptydirs	Mon Jul 26 20:52:45 2021
+++ b/lib/emptydirs	Tue Jul 27 11:34:08 2021
@@ -50,6 +50,9 @@
 OpenBSD/386/bin
 OpenBSD/386/include
 OpenBSD/386/lib
+OpenBSD/amd64/bin
+OpenBSD/amd64/include
+OpenBSD/amd64/lib
 OpenBSD/arm/bin
 OpenBSD/arm/include
 OpenBSD/arm/lib
@@ -122,6 +125,7 @@
 usr/inferno/charon
 usr/inferno/keyring
 usr/inferno/tmp
+utils/lib/
 services/collab/export/services
 services/collab/export/collab
 acme/acid
--- a/lib/mk/mkconfig	Mon Jul 26 20:52:45 2021
+++ b/lib/mk/mkconfig	Tue Jul 27 11:34:08 2021
@@ -24,5 +24,5 @@
 #
 OBJDIR=$SYSTARG/$OBJTYPE
 
-<$ROOT/mkfiles/mkhost-$SYSHOST			# variables appropriate for host system
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	# variables used to build target object type
+<$SRC/mkfiles/mkhost-$SYSHOST			# variables appropriate for host system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	# variables used to build target object type
--- a/libmp/Inferno-386/mkfile	Mon Jul 26 20:52:45 2021
+++ b/libmp/Inferno-386/mkfile	Tue Jul 27 11:34:08 2021
@@ -19,4 +19,4 @@
 	$HFILES\
 	$SFILES\
 
-<$ROOT/mkfiles/mksyslib-$SHELLTYPE
+<$SRC/mkfiles/mksyslib-$SHELLTYPE
--- a/libmp/Inferno-mips/mkfile	Mon Jul 26 20:52:45 2021
+++ b/libmp/Inferno-mips/mkfile	Tue Jul 27 11:34:08 2021
@@ -18,4 +18,4 @@
 	$HFILES\
 	$SFILES\
 
-<$ROOT/mkfiles/mksyslib-$SHELLTYPE
+<$SRC/mkfiles/mksyslib-$SHELLTYPE
--- a/libmp/Inferno-power/mkfile	Mon Jul 26 20:52:45 2021
+++ b/libmp/Inferno-power/mkfile	Tue Jul 27 11:34:08 2021
@@ -17,4 +17,4 @@
 	$HFILES\
 	$SFILES\
 
-<$ROOT/mkfiles/mksyslib-$SHELLTYPE
+<$SRC/mkfiles/mksyslib-$SHELLTYPE
--- a/libmp/Plan9-386/mkfile	Mon Jul 26 20:52:45 2021
+++ b/libmp/Plan9-386/mkfile	Tue Jul 27 11:34:08 2021
@@ -18,4 +18,4 @@
 	$HFILES\
 	$SFILES\
 
-<$ROOT/mkfiles/mksyslib-$SHELLTYPE
+<$SRC/mkfiles/mksyslib-$SHELLTYPE
--- a/libmp/Plan9-amd64/mkfile	Mon Jul 26 20:52:45 2021
+++ b/libmp/Plan9-amd64/mkfile	Tue Jul 27 11:34:08 2021
@@ -18,4 +18,4 @@
 	$HFILES\
 	$SFILES\
 
-<$ROOT/mkfiles/mksyslib-$SHELLTYPE
+<$SRC/mkfiles/mksyslib-$SHELLTYPE
--- a/libmp/Plan9-mips/mkfile	Mon Jul 26 20:52:45 2021
+++ b/libmp/Plan9-mips/mkfile	Tue Jul 27 11:34:08 2021
@@ -18,4 +18,4 @@
 	$HFILES\
 	$SFILES\
 
-<$ROOT/mkfiles/mksyslib-$SHELLTYPE
+<$SRC/mkfiles/mksyslib-$SHELLTYPE
--- a/libmp/Plan9-power/mkfile	Mon Jul 26 20:52:45 2021
+++ b/libmp/Plan9-power/mkfile	Tue Jul 27 11:34:08 2021
@@ -17,4 +17,4 @@
 	$HFILES\
 	$SFILES\
 
-<$ROOT/mkfiles/mksyslib-$SHELLTYPE
+<$SRC/mkfiles/mksyslib-$SHELLTYPE
--- a/libsec/Inferno-386/mkfile	Mon Jul 26 20:52:45 2021
+++ b/libsec/Inferno-386/mkfile	Tue Jul 27 11:34:08 2021
@@ -14,4 +14,4 @@
 
 OFILES=${FILES:%=%.$O}
 
-<$ROOT/mkfiles/mksyslib-$SHELLTYPE
+<$SRC/mkfiles/mksyslib-$SHELLTYPE
--- a/libsec/Inferno-mips/mkfile	Mon Jul 26 20:52:45 2021
+++ b/libsec/Inferno-mips/mkfile	Tue Jul 27 11:34:08 2021
@@ -13,4 +13,4 @@
 
 OFILES=${FILES:%=%.$O}
 
-<$ROOT/mkfiles/mksyslib-$SHELLTYPE
+<$SRC/mkfiles/mksyslib-$SHELLTYPE
--- a/libsec/Plan9-386/mkfile	Mon Jul 26 20:52:45 2021
+++ b/libsec/Plan9-386/mkfile	Tue Jul 27 11:34:08 2021
@@ -13,4 +13,4 @@
 
 OFILES=${FILES:%=%.$O}
 
-<$ROOT/mkfiles/mksyslib-$SHELLTYPE
+<$SRC/mkfiles/mksyslib-$SHELLTYPE
--- a/libsec/Plan9-mips/mkfile	Mon Jul 26 20:52:45 2021
+++ b/libsec/Plan9-mips/mkfile	Tue Jul 27 11:34:08 2021
@@ -13,4 +13,4 @@
 
 OFILES=${FILES:%=%.$O}
 
-<$ROOT/mkfiles/mksyslib-$SHELLTYPE
+<$SRC/mkfiles/mksyslib-$SHELLTYPE
--- a/mkfile	Mon Jul 26 20:52:45 2021
+++ b/mkfile	Tue Jul 27 11:34:08 2021
@@ -44,19 +44,19 @@
 foo:QV:
 	echo mk all, clean, install, installall or nuke
 
-all:V:		mkrootdir all-$HOSTMODEL
+all:V:		all-$HOSTMODEL
 clean:V:	clean-$HOSTMODEL
-install:V:	mkrootdir install-$HOSTMODEL
-installall:V:	mkrootdir installall-$HOSTMODEL
+install:V:	install-$HOSTMODEL
+installall:V:	installall-$HOSTMODEL
 emu:V:	emu/all-$HOSTMODEL
-emuinstall:V:	mkrootdir emu/install-$HOSTMODEL
+emuinstall:V:	emu/install-$HOSTMODEL
 emuclean:V:	emu/clean-$HOSTMODEL
 emunuke:V:	emu/nuke-$HOSTMODEL
 kernel:V:	kernel/all-$HOSTMODEL
 kernelall:V:	kernel/all-$HOSTMODEL
 kernelclean:V:	kernel/clean-$HOSTMODEL
-kernelinstall:V:	mkrootdir kernel/install-$HOSTMODEL
-kernelinstallall:V:	mkrootdir kernel/installall-$HOSTMODEL
+kernelinstall:V:	kernel/install-$HOSTMODEL
+kernelinstallall:V:	kernel/installall-$HOSTMODEL
 kernelnuke:V:	kernel/nuke-$HOSTMODEL
 nuke:V:		nuke-$HOSTMODEL
 
@@ -66,7 +66,9 @@
 nukedist:V: nuke
 	rm -f $ROOT/$OBJDIR/bin/*.exe
 	rm -f $ROOT/$OBJDIR/lib/lib*.a
-	
+
+&/install-& install-& &/installall-& installall-&:QV:	mkrootdir
+
 &-Posix:QV:
 	for j in $DIRS utils tools
 	do
@@ -208,11 +210,11 @@
 
 mkrootdir-sh:V:
 	test -d $ROOT || mkdir $ROOT
-	for (d in doc fonts icons lib locale man module services usr)
-	{
+	for d in doc fonts icons lib locale man module services usr
+	do
 		echo cp -a $SRC/$d $ROOT/
 		cp -a $SRC/$d $ROOT/
-	}
+	done
 
 mkrootdir-nt:V:
 	test -d $ROOT || mkdir $ROOT
--- a/os/boot.original/arm1110/mkfile	Mon Jul 26 20:52:45 2021
+++ b/os/boot.original/arm1110/mkfile	Tue Jul 27 11:34:08 2021
@@ -10,7 +10,7 @@
 	libkern\
 
 LIBFILES=${LIBS:%=$LIBDIR/%.a}
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE
 
 BIN=$ROOT/Inferno/$OBJTYPE
 
--- a/os/boot.original/libflate/mkfile	Mon Jul 26 20:52:45 2021
+++ b/os/boot.original/libflate/mkfile	Tue Jul 27 11:34:08 2021
@@ -18,4 +18,4 @@
 	$ROOT/include/flate.h\
 	zlib.h\
 
-<$ROOT/mkfiles/mksyslib-$SHELLTYPE
+<$SRC/mkfiles/mksyslib-$SHELLTYPE
--- a/os/boot.original/mpc/mkfile	Mon Jul 26 20:52:45 2021
+++ b/os/boot.original/mpc/mkfile	Tue Jul 27 11:34:08 2021
@@ -2,7 +2,7 @@
 OBJTYPE=power	# always
 <../../../mkconfig
 SYSTARG=$OSTARG	# always
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE
 INSTALLDIR=$ROOT/Inferno/$OBJTYPE/bin	#path of directory where kernel is installed
 ARCH=fads	# selects board dependent code
 TARG=qb$ARCH
--- a/os/boot.original/pc/mkfile	Mon Jul 26 20:52:45 2021
+++ b/os/boot.original/pc/mkfile	Tue Jul 27 11:34:08 2021
@@ -10,7 +10,7 @@
 	libkern\
 
 LIBFILES=${LIBS:%=$LIBDIR/%.a}
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE
 
 BIN=$ROOT/Inferno/$OBJTYPE
 
--- a/os/boot.original/puma/mkfile	Mon Jul 26 20:52:45 2021
+++ b/os/boot.original/puma/mkfile	Tue Jul 27 11:34:08 2021
@@ -2,7 +2,7 @@
 
 SYSTARG=Inferno
 OBJTYPE=arm
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
 
 TARGET=${O}boot
 OBJ=\
--- a/os/boot.original/rpcg/mkfile	Mon Jul 26 20:52:45 2021
+++ b/os/boot.original/rpcg/mkfile	Tue Jul 27 11:34:08 2021
@@ -2,7 +2,7 @@
 OBJTYPE=power	# always
 <../../../mkconfig
 SYSTARG=$OSTARG	# always
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE
 INSTALLDIR=$ROOT/Inferno/$OBJTYPE/bin	#path of directory where kernel is installed
 CONF=rpcg	# selects board dependent code
 TARG=qb$CONF
--- a/os/cerf1110/mkfile	Mon Jul 26 20:52:45 2021
+++ b/os/cerf1110/mkfile	Tue Jul 27 11:34:08 2021
@@ -11,7 +11,7 @@
 INSTALLDIR=$ROOT/Inferno/$OBJTYPE/bin	#path of directory where kernel is installed
 #end configurable parameters
 
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
 
 <| $SHELLNAME ../port/mkdevlist $CONF	#sets $IP, $DEVS, $ETHERS, $VGAS, $PORT, $MISC, $LIBS, $OTHERS
 
--- a/os/cerf250/mkfile	Mon Jul 26 20:52:45 2021
+++ b/os/cerf250/mkfile	Tue Jul 27 11:34:08 2021
@@ -11,7 +11,7 @@
 INSTALLDIR=$ROOT/Inferno/$OBJTYPE/bin	#path of directory where kernel is installed
 #end configurable parameters
 
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
 
 <| $SHELLNAME ../port/mkdevlist $CONF	#sets $IP, $DEVS, $ETHERS, $VGAS, $PORT, $MISC, $LIBS, $OTHERS
 
--- a/os/cerf405/mkfile	Mon Jul 26 20:52:45 2021
+++ b/os/cerf405/mkfile	Tue Jul 27 11:34:08 2021
@@ -15,7 +15,7 @@
 
 #end configurable parameters
 
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
 
 <| $SHELLNAME ../port/mkdevlist $CONF	#sets $IP, $DEVS, $ETHERS, $VGAS, $PORT, $MISC, $LIBS, $OTHERS
 
--- a/os/fads/mkfile	Mon Jul 26 20:52:45 2021
+++ b/os/fads/mkfile	Tue Jul 27 11:34:08 2021
@@ -16,7 +16,7 @@
 
 #end configurable parameters
 
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
 
 <| $SHELLNAME ../port/mkdevlist $CONF	#sets $IP, $DEVS, $ETHERS, $VGAS, $PORT, $MISC, $LIBS, $OTHERS
 
--- a/os/ipaq1110/mkfile	Mon Jul 26 20:52:45 2021
+++ b/os/ipaq1110/mkfile	Tue Jul 27 11:34:08 2021
@@ -11,7 +11,7 @@
 INSTALLDIR=$ROOT/Inferno/$OBJTYPE/bin	#path of directory where kernel is installed
 #end configurable parameters
 
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
 
 <| $SHELLNAME ../port/mkdevlist $CONF	#sets $IP, $DEVS, $ETHERS, $VGAS, $PORT, $MISC, $LIBS, $OTHERS
 
--- a/os/ipengine/mkfile	Mon Jul 26 20:52:45 2021
+++ b/os/ipengine/mkfile	Tue Jul 27 11:34:08 2021
@@ -15,7 +15,7 @@
 
 #end configurable parameters
 
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
 
 <| $SHELLNAME ../port/mkdevlist $CONF	#sets $IP, $DEVS, $ETHERS, $VGAS, $PORT, $MISC, $LIBS, $OTHERS
 
--- a/os/js/mkfile	Mon Jul 26 20:52:45 2021
+++ b/os/js/mkfile	Tue Jul 27 11:34:08 2021
@@ -13,7 +13,7 @@
 
 #end configurable parameters
 
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
 
 <| $SHELLNAME ../port/mkdevlist $CONF	#sets $IP, $DEVS, $ETHERS, $VGAS, $PORT, $MISC, $LIBS, $OTHERS
 
--- a/os/ks32/mkfile	Mon Jul 26 20:52:45 2021
+++ b/os/ks32/mkfile	Tue Jul 27 11:34:08 2021
@@ -10,7 +10,7 @@
 INSTALLDIR=$ROOT/Inferno/$OBJTYPE/bin	#path of directory where kernel is installed
 #end configurable parameters
 
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
 
 <| $SHELLNAME ../port/mkdevlist $CONF	#sets $IP, $DEVS, $ETHERS, $VGAS, $PORT, $MISC, $LIBS, $OTHERS
 
--- a/os/manga/mkfile	Mon Jul 26 20:52:45 2021
+++ b/os/manga/mkfile	Tue Jul 27 11:34:08 2021
@@ -10,7 +10,7 @@
 INSTALLDIR=$ROOT/Inferno/$OBJTYPE	#path of directory where kernel is installed
 #end configurable parameters
 
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
 
 <| $SHELLNAME ../port/mkdevlist $CONF	#sets $IP, $DEVS, $ETHERS, $VGAS, $PORT, $MISC, $LIBS, $OTHERS
 
--- a/os/rpcg/mkfile	Mon Jul 26 20:52:45 2021
+++ b/os/rpcg/mkfile	Tue Jul 27 11:34:08 2021
@@ -15,7 +15,7 @@
 
 #end configurable parameters
 
-<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
+<$SRC/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system
 
 <| $SHELLNAME ../port/mkdevlist $CONF	#sets $IP, $DEVS, $ETHERS, $VGAS, $PORT, $MISC, $LIBS, $OTHERS
 
--- a/tests/mkfile	Mon Jul 26 20:52:45 2021
+++ b/tests/mkfile	Tue Jul 27 11:34:08 2021
@@ -16,4 +16,4 @@
 
 BIN=$ROOT/$OBJDIR/bin
 
-<$ROOT/mkfiles/mkmany-$SHELLTYPE
+<$SRC/mkfiles/mkmany-$SHELLTYPE
--- a/tools/db/mkfile	Mon Jul 26 20:52:45 2021
+++ b/tools/db/mkfile	Tue Jul 27 11:34:08 2021
@@ -10,4 +10,4 @@
 
 SYSLIBS= -liodbc
 
-<$ROOT/mkfiles/mkone-$SHELLTYPE
+<$SRC/mkfiles/mkone-$SHELLTYPE
--- a/tools/libstyx/mkfile	Mon Jul 26 20:52:45 2021
+++ b/tools/libstyx/mkfile	Tue Jul 27 11:34:08 2021
@@ -8,4 +8,4 @@
 
 HFILES=\
 
-<$ROOT/mkfiles/mksyslib-$SHELLTYPE
+<$SRC/mkfiles/mksyslib-$SHELLTYPE
--- a/tools/mkfile	Mon Jul 26 20:52:45 2021
+++ b/tools/mkfile	Tue Jul 27 11:34:08 2021
@@ -4,4 +4,4 @@
 	libstyx\
 	styxtest\
 
-<$ROOT/mkfiles/mksubdirs
+<$SRC/mkfiles/mksubdirs
--- a/tools/odbc/mkfile	Mon Jul 26 20:52:45 2021
+++ b/tools/odbc/mkfile	Tue Jul 27 11:34:08 2021
@@ -14,6 +14,6 @@
 
 <mkfile-$SYSTARG
 
-<$ROOT/mkfiles/mkone-$SHELLTYPE
+<$SRC/mkfiles/mkone-$SHELLTYPE
 
 CFLAGS=	$CFLAGS -I../libstyx
--- a/tools/styxtest/mkfile	Mon Jul 26 20:52:45 2021
+++ b/tools/styxtest/mkfile	Tue Jul 27 11:34:08 2021
@@ -14,7 +14,7 @@
 
 <mkfile-$SYSTARG
 
-<$ROOT/mkfiles/mkone-$SHELLTYPE
+<$SRC/mkfiles/mkone-$SHELLTYPE
 
 CFLAGS=	$CFLAGS -I../libstyx
 
--- a/utils/iyacc/mkfile	Mon Jul 26 20:52:45 2021
+++ b/utils/iyacc/mkfile	Tue Jul 27 11:34:08 2021
@@ -14,7 +14,7 @@
 
 CFLAGS=	$CFLAGS -I../include '-DSRC="'$SRC'"'  '-DROOT="'$ROOT'"' '-DPARSER="yaccpar"' '-DPARSERS="yaccpar"'
 
-install:V:	$SRC/utils/lib/yaccpar
+install:V:	$ROOT/utils/lib/yaccpar
 
-$SRC/utils/lib/yaccpar:	yaccpar
+$ROOT/utils/lib/yaccpar:	yaccpar
 	rm -f $target && cp $prereq $target