diff options
author | Kevin Breit <mrproper@ximian.com> | 2002-03-17 21:18:28 +0000 |
---|---|---|
committer | Kevin Breit <battery841@src.gnome.org> | 2002-03-17 21:18:28 +0000 |
commit | e63f89609c06be988ab327d1a7c37de2993697f9 (patch) | |
tree | bc1d864c803113b8b5ead1e4af98c13ed5f6a1d0 /help | |
parent | 6eff67c9f5a1d3a1a9d93d8777451f0dd39a5f17 (diff) | |
download | gnome-control-center-e63f89609c06be988ab327d1a7c37de2993697f9.tar.gz |
Added to CVS. I am a dummy, didn't add this.
2002-03-17 Kevin Breit <mrproper@ximian.com>
* xmldocs.make: Added to CVS. I am a dummy, didn't add this.
Diffstat (limited to 'help')
-rw-r--r-- | help/ChangeLog | 4 | ||||
-rw-r--r-- | help/xmldocs.make | 86 |
2 files changed, 90 insertions, 0 deletions
diff --git a/help/ChangeLog b/help/ChangeLog index 39f475376..e9cdf30a4 100644 --- a/help/ChangeLog +++ b/help/ChangeLog @@ -1,3 +1,7 @@ +2002-03-17 Kevin Breit <mrproper@ximian.com> + + * xmldocs.make: Added to CVS. I am a dummy, didn't add this. + 2002-03-14 Kevin Breit <mrproper@ximian.com> * C/Makefile.am: Added to cvs. diff --git a/help/xmldocs.make b/help/xmldocs.make new file mode 100644 index 000000000..6a2ebb31e --- /dev/null +++ b/help/xmldocs.make @@ -0,0 +1,86 @@ +# To use this template: +# 1) Define: figs, docname, lang, omffile, entities although figs, +# omffile, and entities may be empty in your Makefile.am which +# will "include" this one +# 2) Figures must go under figures/ and be in PNG format +# 3) You should only have one document per directory +# +# Note that this makefile forces the directory name under +# $prefix/share/gnome/help/ to be the same as the XML filename +# of the document. This is required by GNOME. eg: +# $prefix/share/gnome/help/fish_applet/C/fish_applet.xml +# ^^^^^^^^^^^ ^^^^^^^^^^^ +# Definitions: +# figs A list of screenshots which will be included in EXTRA_DIST +# Note that these should reside in figures/ and should be .png +# files, or you will have to make modifications below. +# docname This is the name of the XML file: <docname>.xml +# lang This is the document locale +# omffile This is the name of the OMF file. Convention is to name +# it <docname>-<locale>.omf. +# entities This is a list of XML entities which must be installed +# with the main XML file and included in EXTRA_DIST. +# eg: +# figs = \ +# figures/fig1.png \ +# figures/fig2.png +# docname = scrollkeeper-manual +# lang = C +# omffile=scrollkeeper-manual-C.omf +# entities = fdl.xml +# include $(top_srcdir)/help/xmldocs.make +# dist-hook: app-dist-hook +# + +docdir = $(datadir)/gnome/help/$(docname)/$(lang) + +xml_files = $(entities) $(docname).xml + +omf_dir=$(top_srcdir)/omf-install + +EXTRA_DIST = $(xml_files) $(omffile) $(figs) + +CLEANFILES = omf_timestamp + +all: omf + +omf: omf_timestamp + +omf_timestamp: $(omffile) + -for file in $(omffile); do \ + scrollkeeper-preinstall $(docdir)/`awk 'BEGIN {RS = ">" } /identifier/ {print $$0}' $${file} | awk 'BEGIN {FS="\""} /url/ {print $$2}'` $${file} $(omf_dir)/$${file}; \ + done + touch omf_timestamp + +$(docname).xml: $(entities) + -ourdir=`pwd`; \ + cd $(srcdir); \ + cp $(entities) $$ourdir + +app-dist-hook: + -$(mkinstalldirs) $(distdir)/figures + -if [ -e topic.dat ]; then \ + cp $(srcdir)/topic.dat $(distdir); \ + fi + +install-data-am: omf + -$(mkinstalldirs) $(DESTDIR)$(docdir)/figures + -cp $(srcdir)/$(xml_files) $(DESTDIR)$(docdir) + -for file in $(srcdir)/figures/*.png; do \ + basefile=`echo $$file | sed -e 's,^.*/,,'`; \ + $(INSTALL_DATA) $$file $(DESTDIR)$(docdir)/figures/$$basefile; \ + done + -if [ -e $(srcdir)/topic.dat ]; then \ + $(INSTALL_DATA) $(srcdir)/topic.dat $(DESTDIR)$(docdir); \ + fi + +uninstall-local: + -for file in $(srcdir)/figures/*.png; do \ + basefile=`echo $$file | sed -e 's,^.*/,,'`; \ + rm -f $(docdir)/figures/$$basefile; \ + done + -for file in $(xml_files); do \ + rm -f $(DESTDIR)$(docdir)/$$file; \ + done + -rmdir $(DESTDIR)$(docdir)/figures + -rmdir $(DESTDIR)$(docdir) |