Procedure 2.
Add xmldocs.make to the package's root directory. The file can be found in GNOME cvs at gnome-docu/gdp/gdp-example1/help/xmldocs.make. This file contains build templates used consistently throughout GNOME 2 for building and installing documentation.
Add xmldocs.make to cvs: cvs -z3 add xmldocs.make.
If one does not already exist, create a directory called omf-install and add it to cvs using cvs add.
Add Makefile.am to omf-install using the template: gnome-docu/gdp/gdp-example1/omf-install/Makefile.am.
Modify the omf_dest_dir variable, replacing packagename with the name of your package:
omf_dest_dir=$(datadir)/omf/packagename
Add omf-install/Makefile.am to cvs.
In configure.in there is a listing, typically at the end, of Makefiles to be made, as follows:
AC_OUTPUT([ gnome-applets.spec Makefile po/Makefile.in src/Makefile ])
To that list, add the help and omf-install directories: AC_OUTPUT([ gnome-applets.spec Makefile po/Makefile.in src/Makefile help/Makefile help/C/Makefile omf-install/Makefile ])
In Makefile.am, add the help and omf-install directories to SUBDIRS:
SUBDIRS = src po help omf-installand add xmldocs.make to EXTRA_DIST:
EXTRA_DIST = xmldocs.make.