diff options
author | rillig <rillig> | 2007-03-15 22:54:24 +0000 |
---|---|---|
committer | rillig <rillig> | 2007-03-15 22:54:24 +0000 |
commit | efcaabd81b47e2a80d71e51f546db00372c12d66 (patch) | |
tree | 2a6ccf38a6091b29f21c0fce92183621b136e1f9 /mk/build | |
parent | 5c0c8af41749b510aa8eab73465be92a679845e6 (diff) | |
download | pkgsrc-efcaabd81b47e2a80d71e51f546db00372c12d66.tar.gz |
For all those who are interested in the inner workings of pkgsrc, there
is a new target "show-all" that fits to the existing "debug",
"show-tools", "show-vars" targets. It prints a list of the variables
that make up the public interface to pkgsrc. Running this target is
especially useful if you want to do some things, you know that they must
have been implemented but you don't know what it is called. It also
shows the "class" of a variable (user-defined, package-defined,
system-defined).
Diffstat (limited to 'mk/build')
-rw-r--r-- | mk/build/bsd.build-vars.mk | 7 | ||||
-rw-r--r-- | mk/build/build.mk | 7 | ||||
-rw-r--r-- | mk/build/test.mk | 6 |
3 files changed, 17 insertions, 3 deletions
diff --git a/mk/build/bsd.build-vars.mk b/mk/build/bsd.build-vars.mk index d71374bb3ba..168d510e30e 100644 --- a/mk/build/bsd.build-vars.mk +++ b/mk/build/bsd.build-vars.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.build-vars.mk,v 1.3 2006/09/09 02:35:13 obache Exp $ +# $NetBSD: bsd.build-vars.mk,v 1.4 2007/03/15 22:54:24 rillig Exp $ # # BUILD_DIRS is the list of directories in which to perform the build # process. If the directories are relative paths, then they @@ -18,6 +18,11 @@ # executable. If the path is relative, then it is assumed to # be relative to each directory listed in BUILD_DIRS. # + +_VARGROUPS+= build-vars +_USER_VARS.build-vars= # none +_PKG_VARS.build-vars= BUILD_DIRS MAKE_ENV MAKE_PROGRAM MAKE_FLAGS MAKE_FILE NO_BUILD + BUILD_DIRS?= ${CONFIGURE_DIRS} MAKE_PROGRAM?= ${MAKE} MAKE_ENV?= # empty diff --git a/mk/build/build.mk b/mk/build/build.mk index 1cf0a06ad57..11ee4176314 100644 --- a/mk/build/build.mk +++ b/mk/build/build.mk @@ -1,4 +1,4 @@ -# $NetBSD: build.mk,v 1.10 2007/03/08 23:16:06 rillig Exp $ +# $NetBSD: build.mk,v 1.11 2007/03/15 22:54:24 rillig Exp $ # # This file defines what happens in the build phase, excluding the # self-test, which is defined in test.mk. @@ -28,6 +28,11 @@ # mk/build/test.mk # +_VARGROUPS+= build +_USER_VARS.build= MAKE_JOBS BUILD_ENV_SHELL +_PKG_VARS.build= BUILD_MAKE_FLAGS BUILD_TARGET MAKE_JOBS_SAFE +_SYS_VARS.build= BUILD_MAKE_CMD + BUILD_MAKE_FLAGS?= # none BUILD_TARGET?= all diff --git a/mk/build/test.mk b/mk/build/test.mk index 5f08535c4ce..d66ad8256d4 100644 --- a/mk/build/test.mk +++ b/mk/build/test.mk @@ -1,4 +1,4 @@ -# $NetBSD: test.mk,v 1.11 2007/01/28 15:29:11 rillig Exp $ +# $NetBSD: test.mk,v 1.12 2007/03/15 22:54:24 rillig Exp $ # # After the "build" phase, many packages provide some sort of self-test # that can be run on the not-yet installed package. To enable these @@ -33,6 +33,10 @@ # Keywords: test check # +_VARGROUPS+= test +_USER_VARS.test= PKGSRC_RUN_TEST +_PKG_VARS.test= TEST_DIRS TEST_ENV TEST_MAKE_FLAGS MAKE_FILE TEST_TARGET + TEST_DIRS?= ${BUILD_DIRS} TEST_ENV+= ${MAKE_ENV} TEST_MAKE_FLAGS?= # none |