diff options
-rw-r--r-- | doc/guide/files/makefile.xml | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/doc/guide/files/makefile.xml b/doc/guide/files/makefile.xml index 053a5812e30..02d02ed6f30 100644 --- a/doc/guide/files/makefile.xml +++ b/doc/guide/files/makefile.xml @@ -1,4 +1,4 @@ -<!-- $NetBSD: makefile.xml,v 1.13 2005/05/15 20:31:45 rillig Exp $ --> +<!-- $NetBSD: makefile.xml,v 1.14 2005/05/15 23:46:20 rillig Exp $ --> <!-- based on: pkgsrc/bootstrap/bmake/for.c 1.1.1.1 @@ -301,5 +301,23 @@ for_test: </itemizedlist> </sect2> + <sect2> + <title>Workaround for a bug in BSD Make</title> + + <para>The pkgsrc bmake program does not handle the following + assignment correctly. In case <varname>_othervar_</varname> + contains a ``-'' character, one of the closing braces is included + in <varname>${VAR}</varname> after this code executes.</para> + + <programlisting> + VAR:= ${VAR:N${_othervar_:C/-//}} + </programlisting> + + <para>For a more complex code snippet and a workaround, see the + package <pkg>regress/make-quoting</pkg>, testcase + <varname>bug1</varname>.</para> + + </sect2> + </sect1> </chapter> |