Commit graph

17 commits

Author SHA1 Message Date
rillig
858c6cfd69 mk/misc: make configuration for show-all targets more configurable
Up to now, there was a central list of variable name patterns that
defined whether a variable was printed as a sorted list, as a list or as
a single value.

Now each variable group decides on its own which of the variables are
printed in which way, using the usual glob patterns. This is more
flexible since different files sometimes differ in their naming
conventions.

Two variable groups are added: license (for everything related to
LICENSE) and go (for lang/go).
2018-11-30 18:38:19 +00:00
rillig
f37f30c061 mk/misc: adjust layout of the show-all output to pkgsrc format
In Makefiles, the variable values are aligned vertically. This format is
now also used in the show-all target, which makes it easier readable.

Some more variables have been marked as multi-value, and single-valued
variables ending in space are clearly marked. Without the latter, the
regression test would have a line with significant trailing whitespace.
2018-11-11 19:07:12 +00:00
rillig
8f1611a664 mk/misc: in show-all, list values of *_ENV and *_ARGS in separate lines
The *_ENV and *_ARG values are typically very long, and reading them in
a single line is unnecessarily difficult. Therefore, each of their
values is listed on a separate line, for example:

fetch:
  usr   DIST_PATH (undefined)
  pkg   MASTER_SITES = \
                http://ftp.gnome.org/pub/GNOME/sources/glib/2.56/ \
                ftp://ftp.gnome.org/pub/GNOME/sources/glib/2.56/ \
                ftp://ftp.cse.buffalo.edu/pub/Gnome/sources/glib/2.56/ \
                https://download.gnome.org/sources/glib/2.56/ \
                # end of MASTER_SITES
  pkg   DIST_SUBDIR (undefined)
2018-11-10 10:40:55 +00:00
rillig
d01040b2f7 mk/misc/show.mk: improve wording of the help text 2018-05-28 22:34:47 +00:00
rillig
d77131ac6a mk/misc/show.mk: document the show-all-* targets 2018-02-26 22:51:42 +00:00
jperkin
7d86d7dff0 Uniq BUILD_DEFS and BUILD_DEFS_EFFECTS before printing. 2015-01-30 16:45:33 +00:00
obache
8748a0d54c Move show-depends-options again, to be worked form non-option packages. 2013-06-07 00:41:39 +00:00
rillig
5d5d020850 Documented the trap into which I had just fallen. 2009-07-28 07:01:56 +00:00
rillig
d04f057795 Documented BUILD_DEFS and BUILD_DEFS_EFFECTS. 2008-11-19 08:06:36 +00:00
wiz
029e9b6376 Remove some legacy support after branching 2007Q3. 2007-10-16 21:32:59 +00:00
rillig
cbdb42f74b Explained the usr, pkg and sys that appears in the output. 2007-09-12 10:08:38 +00:00
rillig
d65eda96ee When looking for help for _vargroups, the show-all target will be shown. 2007-05-07 09:35:53 +00:00
rillig
3279664f38 The single-letter labels (U, P, S) could easily be confused with the CVS
status (there is also U and P), so it is changed to three-letter labels
(usr, pkg, sys).
2007-03-16 10:28:50 +00:00
rillig
06d7235c76 After the quick fix from some minutes ago, here is the better solution.
Just don't evaluate variables at load-time, but at run-time.
2007-03-16 10:05:20 +00:00
rillig
c319d43a9e Don't evaluate variables unless there's reason to do. This fixes warning
messages like:

cd ${WRKOBJDIR}/x11/kdebase3/work/kdebase-3.5.6 && echo "__dummy-ent ...
cd: can't cd to ${WRKOBJDIR}/x11/kdelibs3/work/kdelibs-3.5.6
2007-03-16 09:53:37 +00:00
rillig
66bf916302 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).
2007-03-15 22:54:24 +00:00
rillig
43908c44cc Moved the show-tools target to misc/show.mk.
Moved the changes-entry target to misc/developer.mk. To save some time,
that file is only included when PKG_DEVELOPER is defined.

Moved the build-defs-message target to misc/show.mk and renamed it to
show-build-defs, since almost all other *-message targets just print a
single line.
2007-01-02 21:29:07 +00:00