pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Resources for getting started.



Rob's mention of 'show-options' and Roland's simply suggesting a grep of targets in the 'mk/' directory were both very helpful. Thank you both.

Of course, this leaves me with the 'databases/db4' issue; I haven't figured out how to either get it to build the targets that's necessary for the install, or how to work around it and have it ignore that dependency.

—Ken

On 2024-06-12 23:00, Roland Illig wrote:
Am 12.06.2024 um 19:05 schrieb Ken McGlothlen:
However, one of the issues I have with it is that there's no concise
list of the various targets you can use on every port. The blank (normal
build) target, 'install' and 'clean', of course, and got
'print-summary-data' shortly after that, but today I stumbled upon
'fetch-list' (which will come in very handy for me), and I'm wondering
whether there's a list somewhere, because I can't seem to find it in the
pkgsrc documentation (https://www.netbsd.org/docs/pkgsrc/).
In the pkgsrc guide, Chapter 13 "The build process" lists the phases of
the build process, which correspond to targets that you can use. That
chapter also describes the pre-*, do-* and post-* targets that are
mainly of interest to pkgsrc developers.

In the pkgsrc guide, Appendix E "Help topics" is an auto-generated list
of all the topics that can be used with "bmake help". The uppercase
topics are variable names, the lowercase topics may be targets you can
use, or function names, or manually added keywords.

If that's still not enough, you can do a textual search:

$ grep '^[a-z][-a-zA-Z0-9 ]*:' mk/*.mk mk/*/*.mk mk/*/*/*.mk

Of the 554 occurrences I got, most are implementation details and are
not intended to be used directly. Based on the file in which they occur,
you may have a good guess at whether they are useful to you.

Roland



Home | Main Index | Thread Index | Old Index