From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <200203280817.g2S8HiU22506@cbe.ericsson.se> From: Bengt Kleberg Subject: Re: [9fans] mk surprises me To: 9fans@cse.psu.edu MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Date: Thu, 28 Mar 2002 09:17:44 +0100 Topicbox-Message-UUID: 6ef074ae-eaca-11e9-9e20-41e7f4b1d025 > Delivered-To: 9fans@cse.psu.edu > To: 9fans@cse.psu.edu > Subject: Re: [9fans] mk surprises me > From: forsyth@caldo.demon.co.uk > >>% : 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. the behaviour i expect (cp f1.c f1, even when f1.c was older than f1, provided that hdr.h was younger than f1) is the one described in plan9v2 documentation. admitedly your suspicion sounds much more logical than the documenation. i have (as well as i can) copied the contents of the mkfile from the book. perhaps this is an error in the book? (there are others). or, is there a difference between plan9 mk and inferno mk for host systems? > try using & for this (similar to % but doesn't match . or /) > > &: hdr.h > > &: &.c > cp $stem.c $target thank you, & works as expected. unfortunatly i am not actually doing anything with mk, just trying to figure out the documentation (which uses % in this case). bengt