<!doctype linuxdoc system>

<!-- Welcome in the SGML world and m4 -->
<!--


-->
<article> 
<titlepag>
<title> linuxdoc-make 0.13 guide</title>
<author>
<name>

	<htmlurl 
	name="Gilles Lamiral" 
	url="mailto:lamiral@linux-france.org?subject=linuxdoc-make 0.13">
</name>
</author>
   
<date>
$Revision: 1.16 $
$Date: 2001/11/22 03:23:06 $
</date>

<abstract> 
How to install and use linuxdoc-make 0.13
</abstract>
</titlepag>
<toc>

  <p>
   <htmlurl name="Documentation index" url="../">

   You can find the latest release of 
	<htmlurl 
	name="linuxdoc-make" 
	url="http://www.linux-france.org/prj/linuxdoc-make/">,
   by 
	<htmlurl 
	name="Gilles Lamiral" 
	url="mailto:lamiral@linux-france.org?subject=linuxdoc-make 0.13">, 
   located at: <newline>
   <tt>http://www.linux-france.org/prj/linuxdoc-make/</tt>

   This document, written in SGML, can be available in several formats:
   <!-- generated with ./bin/formatav.pl lidoma-guide.en -->
<!-- Date    : Fri Jan 11 12:47:35 2002 -->
ASCII
TeX
SGML
PostScript
HTML
HTM
PDF
Info
LyX
Man 
<!-- End of  ./bin/formatav.pl lidoma-guide.en -->

   
  <sect>Introduction
   <p>

    The software <bf>linuxdoc-make</bf> is a bunch of directories, a Makefile, and
    SGML examples, bundled to create several output formats with just
    one <bf>make</bf> command. As a bullet proof, this site part has
    been generated with linuxdoc-make.
  

<sect>Installation
<p>

Installation is easy since you just have to unpack the tarball where you
want to build your documentation. But to create the documentation you
need some tools. They are in section "Prerequisites".

   <sect1>Prerequisites
    <p>

You need some freely available softwares:
All can be found from  
	<url 
	name="freshmeat" 
	url="http://freshmeat.net/">
<itemize>

<item>sgmltools 1.0.x (I personally use 1.0.9). Needed
<item>perl.  Needed (by sgmltools 1.0.x at least).
<item>make (gnu make is nice). Needed
<item>m4 (gnu m4) because it is a powerful tool. Needed.

<item>LaTeX (to generate .dvi files). Optional
<item>ghostview (to view .ps files). Optional
<item>lynx (lynx is good to render pure ASCII) needed for ASCII
format. Optional
<item>pdflatex. Optional
<item>tidy (tidy is good at correcting bad HTML) needed for HTML
and ASCII format. Optional
<item>rcs  (if you want to use version controls on your documents). Optional
<item>tar  (gnu tar is nice). Optional

</itemize>
       
     You need to know how to write SGML files with the linuxdoc DTD.

   <sect1>Download
    <p>
     you can download linuxdoc-make via the ftp protocol at <htmlurl
     url="http://www.linux-france.org/prj/linuxdoc-make/00_dist/"
     name="http://www.linux-france.org/prj/linuxdoc-make/00_dist/">
     
     The archive is named linuxdoc-make-0.13.tgz where 0.13 is
     the version number.

<sect1>Unpacking
<p>

You do not have to be root to install linuxdoc-make. You install
linuxdoc-make where you want to use it.

<verb>
gzip -tv linuxdoc-make-0.13.tgz  # optional
cd where/you/want/
tar tzvf linuxdoc-make-0.13.tgz      # see the content
tar xzvf xzvf linuxdoc-make-0.13.tgz # extract
cd linuxdoc-make-0.13
make    # and read because "make" alone is just a reminder
...
</verb>

You can rename the <bf><tt>linuxdoc-make-0.13/</tt></bf> directory
like you want at any time. Using <tt>make</tt> without argument is safe
since it gives you the usage (alias <tt>make help</tt>).

<sect>Using
<p>

<sect1>For the impatient
<p>
     
If you write an non-english document (english is the default language),
you must end its name with <tt>-ll.sgml</tt> where <tt>ll</tt> is the
two characters symbolizing your language.
     
<tscreen>
<itemize>
<item>en: english,english,
<item>de: deutsch,german,
<item>nl: nederlands,dutch,
<item>fr: français,french,
<item>es: español,spanish,
<item>da: dansk,danish,
<item>no: norsk,norwegian,
<item>se: svenska,swedish,
<item>pt: portuges,portuguese,
<item>ca: català,catalan,
<item>it: italiano,italian,
<item>ro: românã,romanian
</itemize>
</tscreen>

Create a new file with the model.

<verb>

cd linuxdoc-make-0.13/ # if you're not already there
cp sgml/lidoma-model.en.sgml sgml/myfile.en.sgml
</verb>
     
Edit your file <tt>sgml/myfile.en.sgml</tt> (emacs is good at it). Save
your file.

Generate a HTML single page:
<verb>

make htm
</verb>
     
Look at the directory htm/
<verb>

ls -l htm/
myfile.en.htm
</verb>

View myfile-en.htm with your favorite web browser (lynx, isn't it?).

Try other output formats:
<verb>

make
make txt html ps pdf
</verb>

     
If you want a clone directory of all the needed files, just type:
<verb>

make clone
</verb>

then move the clone/ directory where you want.

<sect1>Indexes
<p>

Two cases. 

First, if there is a file named <tt>.index.m4</tt> in any directory,
then this file will be processed with m4 to create an index file named
<tt>index.html</tt>.

Second, if there is no file named <tt>.index.m4</tt> then an nice
<tt>ls</tt> command will create an index file named <tt>index.html</tt>
in each directory.

<verb>
      
make indexes
make i       # same thing (I am lazy)
make if      # force mode 
</verb>

Some treatments use <bf>m4</bf>. All definitions are from the file
<tt>include/definitions.m4</tt> and the files it includes. The best
way to change any definition is to edit the file named
<tt>include/override.m4</tt> and modify the values.

Happy doc !
</article>

<!-- Local IspellDict: english -->
 
 
