shithub: x

Download patch

ref: 20ecadc4bee20598de971afda585621f6d89471b
parent: ff95357ba43430a608c71d9c27996df20d58961c
author: kvik <[email protected]>
date: Tue Apr 14 09:09:11 EDT 2020

Install to /bin; use new %.install target

Convention of installing to /bin provides users with an opportunity
to bind -c their prefered installation destination, such as their
$home/bin tree.

--- a/mkfile
+++ b/mkfile
@@ -1,4 +1,4 @@
-BIN=$home/bin/rc
+BIN=/bin
 MAN=/sys/man/1
 RC=path run mnt cd man vt
 
@@ -5,14 +5,15 @@
 all:VQ:
 	echo 'An unsightly package appears: "Meal, Mk-install-to-Eat."'
 
-install:V: $MAN/x rc
+install:V: ${RC:%=%.install} $MAN/x
 
+%.install:V: % $BIN/x
+	cp $stem $BIN/x
+$BIN/x:
+	mkdir -p $BIN/x
+
 $MAN/x: x.man
 	cp x.man $MAN/x
-
-rc:V:
-	mkdir -p $BIN/x
-	for(f in $RC) cp $f $BIN/x
 
 uninstall:V:
 	rm -rf $BIN/x