home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!dkeisen
- From: dkeisen@leland.Stanford.EDU (Dave Eisen)
- Subject: Re: make, makefile where s.'s are in another directory, clean solution ?
- Message-ID: <1992Nov24.043303.8790@leland.Stanford.EDU>
- Keywords: make
- Sender: news@leland.Stanford.EDU (Mr News)
- Organization: Sequoia Peripherals, Inc.
- References: <1992Nov20.140313.32637@europa.asd.contel.com> <1992Nov23.092525.1396@ericsson.se>
- Date: Tue, 24 Nov 92 04:33:03 GMT
- Lines: 29
-
- >In article <1992Nov20.140313.32637@europa.asd.contel.com>, mclemore@rebec.asd.contel.com (Ken McLemore) writes:
- > we like to keep all our "s." files in one source directory and run makes
- > in other directory during development, looking for a clean solution for
- > these "s." dependencies other than an explicit entry for each ".c" that
- > has macro pathing to the source directory.
- > suggestions, thanks in advance....ken
-
- This probably depends on the version make you are using.
-
- We use GNU make (and are very happy with it) and it has a feature
- that makes this a triviality. Using GNU make, all you need do is
- put:
-
- vpath s.% SCCSdir
-
- This tells make to look for files that are names s.something in
- directory SCCSdir.
-
- As I understand things, this use of vpath is unique to GNU make. But
- other makes have a less powerful feature using a variable VPATH. Check
- the documentation that comes with your system.
-
-
-
- --
- Dave Eisen Sequoia Peripherals: (415) 967-5644
- dkeisen@leland.Stanford.EDU Home: (415) 321-5154
- There's something in my library to offend everybody.
- --- Washington Coalition Against Censorship
-