wm: infra

Download patch

ref: b16a86beca88c22f877d72ccaf98cec0a8141863
parent: 826c3f3d7ff0fa2ca742b504afda62584b3803e6
author: mkf <mkf@cloud9p.org>
date: Fri Dec 22 04:14:05 EST 2023

add pasted into mkfile

--- a/mkfile
+++ b/mkfile
@@ -3,12 +3,23 @@
 TARG=\
     chusr\
 
+RC=\
+	newuser\
+	pasted
+
 </sys/src/cmd/mkmany
 
-install:V: $BIN $BIN/newuser
+install:V:
+	mkdir -p $BIN
+	for (i in $TARG)
+		mk $MKFLAGS $i.install
+	for (i in $RC)
+		mk $MKFLAGS $i.rcinstall
 
+%.rcinstall:V:
+	cp $stem $BIN/$stem
+
 $BIN:
 	mkdir -p $BIN
 
-$BIN/newuser:V:
-    cp newuser $target
+