[Bug 253523] make: VPATH works, .PATH does not

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Feb 15 00:38:55 UTC 2021


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 at FreeBSD.org
          Reporter: mi at 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.


More information about the freebsd-bugs mailing list