freebsd-skq/share/mk
Will Andrews a0dec793d0 Search for the nearest PORTSDIR where Mk/bsd.ports.mk exists, from .CURDIR.
This will only take effect if PORTSDIR is not set, as previously supported.

Use .if exists(), for four specific possibilities relative to .CURDIR:
., .., ../.., and ../../..  The fourth possibility is primarily in case
ports ever grows a third level.  If none of these paths exist, fall back to
the old default of /usr/ports.

This removes the need to set PORTSDIR explicitly (or via wrapper script) if
one is running out of a ports tree that is not in /usr/ports, but in a
home directory.

Reviewed by:	bapt, bdrewery (older version)
CR:		D799
MFC after:	1 week
Sponsored by:	Spectra Logic
2014-09-29 15:05:23 +00:00
..
atf.test.mk Rework privatelib/internallib 2014-08-06 22:17:26 +00:00
bsd.arch.inc.mk Merge from tbemd 2010-06-11 02:50:53 +00:00
bsd.compiler.mk Allow CC to not actually exist. During the ports INDEX run, all the 2014-05-23 14:34:22 +00:00
bsd.cpu.mk Support CXXFLAGS.${MACHINE_ARCH} as well as CFLAGS. This allows different 2014-07-08 14:37:01 +00:00
bsd.crunchgen.mk NO_DEBUG_FILES -> MK_DEBUG_FILES=no in last remaining place. 2014-04-25 19:25:18 +00:00
bsd.dep.mk Remove many false positives with make checkdpadd 2014-09-10 07:55:51 +00:00
bsd.doc.mk Move DOCCOMPRESS to MK variable. 2014-05-10 16:38:54 +00:00
bsd.endian.mk Remove ia64. 2014-07-07 00:27:09 +00:00
bsd.files.mk Ensure files are created during the build when using bsd.subdir.mk. 2014-06-09 14:36:49 +00:00
bsd.incs.mk Eliminate NO_INCS. It is used one place, and MK_TOOLCHAIN=no will 2014-04-25 19:25:45 +00:00
bsd.info.mk Replace all known uses of ln in the build process with appropriate 2013-01-21 22:40:39 +00:00
bsd.init.mk Include bsd.opts.mk before Makefile.inc so Makefile.inc can do things 2014-04-24 02:02:51 +00:00
bsd.kmod.mk Fix comma splice, can't ambiguity and quoting. 2012-02-16 21:04:47 +00:00
bsd.lib.mk Make sure the DTrace header files are built before depend and before 2014-08-13 01:27:51 +00:00
bsd.libnames.mk Introduce missing definition for LIBTERMCAPW 2014-08-26 09:12:41 +00:00
bsd.links.mk Replace all known uses of ln in the build process with appropriate 2013-01-21 22:40:39 +00:00
bsd.man.mk Convert NO_MANCOMPRESSED to MK_MANCOMPRESSED. 2014-04-18 17:03:49 +00:00
bsd.mkopt.mk Spell always the more traditional way. 2014-05-09 04:49:43 +00:00
bsd.nls.mk
bsd.obj.mk bsd.lib.mk does not add OBJS etc to CLEANFILES so does not automatically 2014-07-22 00:42:55 +00:00
bsd.opts.mk Revert r267233 for now. PIE support needs to be reworked. 2014-08-19 15:04:32 +00:00
bsd.own.mk Better documentation for why KERBEROS and OPENSSH are here, and where 2014-05-27 16:30:54 +00:00
bsd.port.mk Search for the nearest PORTSDIR where Mk/bsd.ports.mk exists, from .CURDIR. 2014-09-29 15:05:23 +00:00
bsd.port.options.mk
bsd.port.post.mk
bsd.port.pre.mk
bsd.port.subdir.mk Search for the nearest PORTSDIR where Mk/bsd.ports.mk exists, from .CURDIR. 2014-09-29 15:05:23 +00:00
bsd.prog.mk Allow standalone debug for non-default ${PROG} targets 2014-09-02 19:05:34 +00:00
bsd.progs.mk Improve bsd.progs.mk compatibility with bsd.prog.mk 2014-09-24 04:45:35 +00:00
bsd.README Document an important, but easy to overlook without grepping the 2014-07-25 21:10:30 +00:00
bsd.snmpmod.mk
bsd.subdir.mk Create a mechanism for providing fine-grained build order dependencies 2014-06-15 13:45:37 +00:00
bsd.symver.mk
bsd.sys.mk Add -Wthread-safety to WARNS=6. 2014-09-01 20:18:09 +00:00
bsd.test.mk Put the test suite in its own tests.txz distribution file. 2014-06-10 17:04:30 +00:00
Makefile Remove bsd.dtrace.mk. 2014-07-12 07:46:18 +00:00
plain.test.mk Fix atf-sh's integration_test 2014-07-09 00:55:50 +00:00
src.libnames.mk Make the libbsdstat useful again. 2014-08-13 19:43:22 +00:00
src.opts.mk Import HyperV Key-Value Pair (KVP) driver and daemon code by Microsoft, 2014-09-13 02:15:31 +00:00
src.sys.mk We do not ever want _srcconf_included_ as MAIN target. 2014-07-28 23:36:21 +00:00
suite.test.mk Move FreeBSD Test Suite-specific code to a suite.test.mk file. 2014-03-14 12:52:55 +00:00
sys.mk Reviewed by: imp 2014-07-26 04:38:09 +00:00
tap.test.mk Fix atf-sh's integration_test 2014-07-09 00:55:50 +00:00
version_gen.awk