Xref: utzoo comp.unix.questions:7773 comp.sys.att:3614
Path: utzoo!utgpu!water!watmath!clyde!att!pacbell!ames!ncar!boulder!sunybcs!bingvaxu!leah!itsgw!steinmetz!uunet!vsi!friedl
From: friedl@vsi.UUCP (Stephen J. Friedl)
Newsgroups: comp.unix.questions,comp.sys.att
Subject: has anybody put $VPATH into mk?
Message-ID: <732@vsi.UUCP>
Date: 26 Jun 88 04:08:06 GMT
Distribution: comp
Organization: V-Systems, Inc. -- Santa Ana, CA
Lines: 29

Hi folks,

     We recently got mk from the Toolchest (Hi Andrew!) and
before I go hacking it up too much I want to check with others.
Has anybody added $VPATH to mk?  Make has this very helpful
undocumented feature and I want it here.

     For those unfamiliar with $VPATH, it is a make variable that
provides a colon-separated list of paths to search when looking
for dependencies.  With VPATH set to

        VPATH=/usr/project/include:$INFORMIXDIR/incl ; export VPATH

you can convert:

        foo.o   : foo.h ../include/defs.h ${INFORMIXDIR}/incl/dbtypes.h
into
        foo.o   : foo.h defs.h dbtypes.h

     We like to stick these assignments in the project's .profile;
it really helps keep Makefiles from getting too cluttered.  Has
anybody done this to mk yet?  Will you share it?

     Thanks in advance,
     Steve

-- 
Steve Friedl     V-Systems, Inc. (714) 545-6442     3B2-kind-of-guy
friedl@vsi.com     {backbones}!vsi.com!friedl    attmail!vsi!friedl

Nancy Reagan on the Free Software Foundation : "Just say GNU"