Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site hcrvx2.UUCP Path: utzoo!hcrvx2!khasin From: khasin@hcrvx2.UUCP (Kha Sin Teow) Newsgroups: net.unix-wizards Subject: Re: Make Message-ID: <2376@hcrvx2.UUCP> Date: Fri, 15-Aug-86 09:49:26 EDT Article-I.D.: hcrvx2.2376 Posted: Fri Aug 15 09:49:26 1986 Date-Received: Sun, 17-Aug-86 02:46:12 EDT References: <567@ukecc.UUCP> Reply-To: khasin@hcrvx2.UUCP (Kha Sin Teow) Organization: Human Computing Resources, Toronto Lines: 40 Summary: In article <567@ukecc.UUCP> sean@ukecc.UUCP (Sean Casey) writes: >I need some help with make. I've pored over the documentation, but >it seems that no matter what I try I can't get it to do what I want. >Could somebody please help me out? > ... although i don't have a complete solution to your problem, i have done something similar to what you are trying to do. typically i maintained a processed document file in the same directory as the source, except that it is appended with a different suffix. using your sample of file names: subject1.ms subject2.ms i would put the processed files into: subject1.doc subject2.doc Consequently, the Makefile would look something like this: # Make file for processing subject documents .SUFFIXES .doc .ms # .ms.doc: nroff -ms $*.ms | myprog > $*.doc If you must keep *.doc in a separate subdirectory, you could "mv" or "ln" them. Otherwise, you would have to explicitly specify the depedency of each processed file and its source: # another make file line docsdir/subject1.doc: subject1.ms nroff -ms ... which is not as "elegant" as the previous setup. Hope this help. Kha Sin TEOW, HCR. Toronto.