From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <200203271340.g2RDekt13862@copernicus.cs.utwente.nl> To: 9fans@cse.psu.edu Subject: Re: [9fans] mk surprises me In-reply-to: Your message of "Wed, 27 Mar 2002 14:10:52 +0100." <200203271310.g2RDAqU02875@cbe.ericsson.se> References: <200203271310.g2RDAqU02875@cbe.ericsson.se> From: Axel Belinfante Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 27 Mar 2002 14:40:45 +0100 Topicbox-Message-UUID: 6e23731e-eaca-11e9-9e20-41e7f4b1d025 Someone more knowledgeable will surely correct me, if needed. Don't you need to include one of the general mk 'rule templates' (mkone, mkmany or such)? At least, that's what I recall seeing in the plan 9 source tree, and in a similar way in the drawterm source. Axel. > mk does not do what i expect it to do. here are some facts: > > > the mkfile > > % : hdr.h > > % : %.c > cp $stem.c $target > > > the files > -rw-rw-r-- 1 eleberg avall 0 Mar 20 15:47 f2.c > -rw-rw-r-- 1 eleberg avall 0 Mar 27 13:12 f2 > -rw-rw-r-- 1 eleberg avall 0 Mar 27 13:17 hdr.h > > > the test > ; inferno/Solaris/sparc/bin/mk -f mkfile f2 > mk: no recipe to make 'f2.c' > > > according to my interpretation of 'maintaining files on plan9 with mk' > (from plan9v2 documentation), page 188, the mkfile should produce f2 > from f2.c if hdr.h is younger then f2. but instead i get the error > message above that i do not understand. > is there anybody that sees where i go wrong? > > possible sources of errors: > i use mk from inferno, not plan9 > i have only the plan9v2 documentation, not v3 documentation. > i am not very good with mkfiles > > > bengt >