diff options
Diffstat (limited to 'en_US/module-struct.xml')
-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> |