plan9port/src/cmd/mk
Russ Cox 44eb208829 mk: avoid infinite loop when targets are repeated
Fixes "mk -f /tmp/x.mk y x" or "mk -f /tmp/x.mk" where /tmp/x.mk is:

x y x: f
	echo hi

Change-Id: I7fa87dc4750c04fdba010b990c190722b432b333
Reviewed-on: https://plan9port-review.googlesource.com/1361
Reviewed-by: Russ Cox <rsc@swtch.com>
2015-08-27 00:36:40 +00:00
..
arc.c 64-bit 2006-04-20 22:54:18 +00:00
archive.c 64-bit 2006-04-20 22:54:18 +00:00
bufblock.c
env.c 64-bit 2006-04-20 22:54:18 +00:00
file.c 64-bit 2006-04-20 22:54:18 +00:00
fns.h avoid saying unsigned long, for unix port 2005-01-23 22:57:21 +00:00
graph.c 64-bit 2006-04-20 22:54:18 +00:00
job.c
lex.c not reached 2005-01-14 17:57:32 +00:00
main.c Long-standing bug in syminit, tickled by placing 2005-01-15 20:54:41 +00:00
match.c
mk.c mk: pass environment to P command 2011-08-27 23:06:15 -04:00
mk.h mk: avoid infinite loop when targets are repeated 2015-08-27 00:36:40 +00:00
mk.pdf
mkfile
mkfile.test Many small edits. 2005-01-13 04:49:19 +00:00
NOTICE
parse.c Many small edits. 2005-01-13 04:49:19 +00:00
rc.c better rc detection (Michael Teichgräber) 2007-03-26 13:38:36 +00:00
README
recipe.c mk: avoid infinite loop when targets are repeated 2015-08-27 00:36:40 +00:00
rule.c avoid broken print (Gabriel Diaz) 2006-10-12 03:18:22 +00:00
run.c 64-bit 2006-04-20 22:54:18 +00:00
sh.c Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
shell.c Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
shprint.c
symtab.c 64-bit 2006-04-20 22:54:18 +00:00
sys.h
sys.std.h unix fix 2007-04-21 22:36:01 +00:00
unix.c 64-bit 2006-04-20 22:54:18 +00:00
var.c 64-bit 2006-04-20 22:54:18 +00:00
varsub.c fix empty string interpolation bugs (Michael Teichgräber) 2007-03-26 17:27:08 +00:00
word.c fix empty string interpolation bugs (Michael Teichgräber) 2007-03-26 17:27:08 +00:00

This is a Unix port of mk,
originally done for the Inferno operating system.

Russ Cox repackaged this to build as a standalone
Unix program.  Send comments about packaging to
Russ Cox <rsc@post.harvard.edu>