diff options
author | Paul W. Frields <stickster@gmail.com> | 2007-03-12 01:25:56 +0000 |
---|---|---|
committer | Paul W. Frields <stickster@gmail.com> | 2007-03-12 01:25:56 +0000 |
commit | 52785d5a3fe6c39dd6a6a23718cf9a54d9ab0795 (patch) | |
tree | 72e816ec81c21e1701fa785b99e1817cc70e0f6a | |
parent | 1baf8fb2a51205cd8192cb387d4b68a77de3e625 (diff) | |
download | documentation-guide-52785d5a3fe6c39dd6a6a23718cf9a54d9ab0795.tar.gz documentation-guide-52785d5a3fe6c39dd6a6a23718cf9a54d9ab0795.tar.xz documentation-guide-52785d5a3fe6c39dd6a6a23718cf9a54d9ab0795.zip |
Update module information to match new include statement for Makefile.common
-rw-r--r-- | en_US/module-struct.xml | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/en_US/module-struct.xml b/en_US/module-struct.xml index 400df6b..fcdb5e4 100644 --- a/en_US/module-struct.xml +++ b/en_US/module-struct.xml @@ -122,7 +122,7 @@ </para> <example id="ex-makefile"> <title>Sample Document Makefile</title> - <programlisting><![CDATA[DOCBASE = example-doc + <screen><![CDATA[DOCBASE = example-doc PRI_LANG = en_US OTHERS = de pt DOC_ENTITIES = doc-entities @@ -132,7 +132,11 @@ XMLFILES-${1} = ${1}/example-doc.xml \ ${1}/para.xml endef -include ../docs-common/Makefile.common]]></programlisting> +define find-makefile-common +for d in docs-common ../docs-common ../../docs-common; do +if [ -f $$d/Makefile.common ]; then echo "$$d/Makefile.common"; break; fi; done +endef +include $(shell $(find-makefile-common))]]></screen> </example> <para> Do not be concerned with some of the more complicated syntax @@ -194,11 +198,11 @@ include ../docs-common/Makefile.common]]></programlisting> discussed later in this guide.<!-- include xref --></para> </important> <para> - The final line, beginning with <literal>include</literal>, - references the main <filename>Makefile</filename> for the build - system. This <filename>Makefile.common</filename> file contains - all the <application>make(1)</application> targets and rules to - actually build the document and the various archives. + The final section, beginning with <literal>define</literal>, + locates the main <filename>Makefile.common</filename> for the + build system. This <filename>Makefile.common</filename> file + contains all the <application>make(1)</application> targets and + rules to actually build the document and the various archives. </para> </section> <section> |