Path: utzoo!utgpu!watmath!gamiddleton From: gamiddleton@watmath.waterloo.edu (Guy Middleton) Newsgroups: comp.unix.wizards Subject: mk doesn't work the way I expect Message-ID: <24726@watmath.waterloo.edu> Date: 31 Mar 89 02:54:49 GMT Reply-To: gamiddleton@watmath.waterloo.edu (Guy Middleton) Organization: University of Waterloo [MFCF/ICR] Lines: 24 We just got mk, and I tried running this mkfile: PROGS = host addr hostaddr all:V: $PROGS $PROGS: $CC -o $target $target.c I expected this to happen: cc -o host host.c cc -o addr addr.c cc -o hostaddr hostaddr.c Instead, I got this: cc -o host addr hostaddr host addr hostaddr.c I got what I expected when the "all:V: $PROGS" line was removed. Why does it work this way? Am I missing something obvious? -Guy Middleton, University of Waterloo gamiddleton@watmath.waterloo.edu