From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] mk surprises me From: forsyth@caldo.demon.co.uk MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20020327141419.714231998C@mail.cse.psu.edu> Date: Wed, 27 Mar 2002 14:10:48 +0000 Topicbox-Message-UUID: 6e2f8f78-eaca-11e9-9e20-41e7f4b1d025 >>% : hdr.h i suspect that because you've said that everything depends on hdr.h, including f2.c, it decides it had better remake that too, since hdr.h has changed, but doesn't know how. try using & for this (similar to % but doesn't match . or /) &: hdr.h &: &.c cp $stem.c $target otherwise you could use regular expression rules