Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Feb 2021 00:38:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 253523] make: VPATH works, .PATH does not
Message-ID:  <bug-253523-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253523

            Bug ID: 253523
           Summary: make: VPATH works, .PATH does not
           Product: Base System
           Version: 11.4-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: mi@FreeBSD.org

I'd like to be able to specify the actual location of the sources on make's
command line.

Doing it with

    make .PATH=/path/to/sources

does not work. But

    make VPATH=/path/to/sources

works. The manual page labels VPATH as deprecated -- advising use of .PATH
instead. Clearly, .PATH is not a complete replacement.

However, .PATH is also frowned upon by the manual page...

I suppose, I can always add a line like:

   .PATH: ${THEPATH}

then invoke make with THEPATH=/path/to/sources -- but why is this any better?

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253523-227>