Add note that pre.mk/post.mk comes as a pair and can't be mixed with bsd.port.mk.

This commit is contained in:
Satoshi Asami 1998-11-23 06:30:23 +00:00
parent 1b258442c1
commit b1e368ba60
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=3825

View file

@ -1,4 +1,4 @@
<!-- $Id: porting.sgml,v 1.115 1998-11-23 06:28:07 asami Exp $ -->
<!-- $Id: porting.sgml,v 1.116 1998-11-23 06:30:23 asami Exp $ -->
<!-- The FreeBSD Documentation Project -->
<sect><heading>Making a port yourself<label id="porting"></heading>
@ -1870,7 +1870,9 @@ PLIST_SUB= OCTAVE_VERSION=${OCTAVE_VERSION}
<p>Do not write anything after the `<tt>.include
&lt;bsd.port.mk&gt;</tt>' line. It usually can be avoided
by including <tt/bsd.port.pre.mk/ somewhere in the middle of
your Makefile and <tt/bsd.port.post.mk/ at the end. The
your Makefile and <tt/bsd.port.post.mk/ at the end. (Note
that you need to include either the <tt/pre.mk//<tt/post.mk/
pair or <tt/bsd.port.mk/ only; don't mix those two.) The
former only defines a few variables, which can be used in
tests in Makefiles; the latter defines the rest. Here are
some important variables defined in <tt/bsd.port.pre.mk/.