diff options
author | rillig <rillig@pkgsrc.org> | 2005-05-15 23:46:20 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-05-15 23:46:20 +0000 |
commit | 090a38e3e609c5b40cc37a65b37a3651a5aa5f12 (patch) | |
tree | ed7d46f1187fed077a52685b5164af9425405398 /doc/guide | |
parent | 5f838616e6375d6538da58f6e963664cd88d9959 (diff) | |
download | pkgsrc-090a38e3e609c5b40cc37a65b37a3651a5aa5f12.tar.gz |
Added documentation for a bug in bmake, and a reference to the package
regress/make-quoting, where a more complete example and a workaround is
presented.
Diffstat (limited to 'doc/guide')
-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> |