shithub: mc

Download patch

ref: b22fbb6351d844d58002c326809258016595ed31
parent: d470a28bf8c0b730b9dbf8e73ba7856fed338084
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Jul 24 19:55:57 EDT 2017

Fix target names.

	We were using the wrong name.

--- a/mbld/deps.myr
+++ b/mbld/deps.myr
@@ -83,8 +83,8 @@
 		a = std.htgetv(g.targs, "all", [][:])
 		std.slpush(&a, gu)
 		std.slpush(&a, go)
-		std.htput(g.targs, to, std.sldup([gu, go][:]))
 		std.htput(g.targs, "all", a)
+		std.htput(g.targs, name, std.sldup([gu, go][:]))
 
 		std.slfree(o)
 		std.slfree(u)
@@ -97,7 +97,7 @@
 		gu = node(g, tu)
 
 		generates(g, go, to)
-		std.htput(g.targs, to, std.sldup([go][:]))
+		std.htput(g.targs, name, std.sldup([go][:]))
 		if mt.istest
 			n = node(g, mt.name)
 			depends(g, n, to)
@@ -110,7 +110,6 @@
 			go.instdir = config.Binpath
 			go.instmod = 0o755
 		;;
-
 		std.slfree(u)
 	;;