15.12. The Targets

After all the variables are defined, the optional make(1) targets can be defined. Keep pre-* before post-* and in the same order as the different stages run:

Tip:

When using options helpers target keep them alphabetically sorted, but keep the *-on before the *-off. When also using the main target, keep the main target before the optional ones:

post-install:
	# install generic bits

post-install-DOCS-on:
	# Install documentation

post-install-X11-on:
	# Install X11 related bits

post-install-X11-off:
	# Install bits that should be there if X11 is disabled

All FreeBSD documents are available for download at https://download.freebsd.org/ftp/doc/

Questions that are not answered by the documentation may be sent to <freebsd-questions@FreeBSD.org>.
Send questions about this document to <freebsd-doc@FreeBSD.org>.