The pkgsrc make target reference

From NetBSD Wiki

Jump to: navigation, search

Contents

pkgsrc make target reference

This document trying to be a good reference for pkgsrc make targets.

Default sequence

all

Default sequence for "all" is:

  1. bootstrap-depends
  2. fetch
  3. checksum
  4. depends
  5. tools
  6. extract
  7. patch
  8. wrapper
  9. configure
  10. build

General targets

The following make targets are generally useful for pkgsrc users:

all

Initiate default sequence (used when no make target is given).

fetch-list

Prints a shell script to the standard output that will download the distfiles.

help

Prints online help for a varible or a make target. Usage make help TOPIC=VARNAME

package

Builds a source package, installs it and creates a binary package from it.

replace

Reinstalling package without relinking dependencies. Target used by pkg_rolling-replace.

show-options / supported-options-message

Print a list of the options that can be selected for the current package.

fetch

Downloads distifiles.

install

Installs the package files into LOCALBASE.

reinstall

is a special target to re-run the install target. It will acquire elevated privileges just-in-time.

checksum

Verifies patches and distfiles from distinfo.

extract

Extracts the downloaded files to working directory.

distinfo

Generates distinfo file, which contains checksums for distfiles and patches.

show-depends

Lists the dependecies of the package with version numbers.

show-depends-pkgpaths

Displays the dependencies' paths in machine readable form.

show-depends-dirs

Same as above. FIXME

clean-depends

Descends into dependencies' package directories and invokes the "clean" action.

do-clean

It does the actual cleaning, which involves removing the work directory and other temporary files used by the package.

clean

It can be invoked by the user to perform the "clean" action.

cleandir

An alias for "clean".

debug

outputs the values of some commonly used variables and the contents of some files which are useful for tracking bugs, especially for packages that use the GNU autotools.

update

This can be used to update a package and all currently installed packages that depend upon this package.

readme

Generates a README.html file suitable for being served via FTP.

cdrom-readme

Generates a README.html file suitable for being served from a mounted CD-ROM.

lint

Runs pkglint on the package.

show-license/show-licence

Prints the usee conditions of the current package.

show-options

Lists the selectable build options for the package.

undo-replace

Undoes the effects of a previous "make replace". It will acquire elevated privileges just-in-time.

Internal targets

how-pkgtools-version

Prints version information about pktools.

show-var

Convenience target, to display make variables from command line

show-vars

Enhanced version of target above, to display multiple variables

show-vars-eval

Displays multiple variables as shell expressions

makedirs

Makes the directories needed for the build environment.

su-target

su-target is a macro target that does just-in-time su-to-root before reinvoking the make process as root. It acquires root privileges and invokes a new make process with the target named "su-${.TARGET}".

README.html

Creating README.html for package.


TODO

Here's a raw list of target which needs description:

     afterinstall, beforeinstall, build,configure, deinstall,
     depend, describe, 
     readmes, realinstall, tags,
     mirror-distfiles, bulk-install, bulk-package, ${PKG_MISC_TARGETS}

See also

Personal tools