nowsys rules
diff --git a/src/cmd/rio/mkfile b/src/cmd/rio/mkfile
index a640e59..5f346d6 100644
--- a/src/cmd/rio/mkfile
+++ b/src/cmd/rio/mkfile
@@ -25,7 +25,7 @@
 L64=`[ -d $X11/lib64 ] && echo 64; echo`
 LDFLAGS=-L$X11/lib$L64/ -lXext -lX11
 
-<$PLAN9/src/mkone
+<|sh mkriorules.sh
 
 CFLAGS=$CFLAGS -DSHAPE
 
diff --git a/src/cmd/rio/mkriorules.sh b/src/cmd/rio/mkriorules.sh
new file mode 100644
index 0000000..0b25d2e
--- /dev/null
+++ b/src/cmd/rio/mkriorules.sh
@@ -0,0 +1,6 @@
+if [ "x$WSYSTYPE" = xnowsys ]; then
+	echo 'all install clean nuke:Q:'
+	echo '	#'
+	exit 0
+fi
+cat $PLAN9/src/mkone
\ No newline at end of file