1 --- /dev/null Tue May 5 22:32:27 1998
2 +++ gnome-chess-0.3.3/doc/sgmldocs.make Wed Jun 6 06:55:21 2001
4 +# To use this template:
5 +# 1) Define: figs, docname, lang, omffile, sgml_ents although figs,
6 +# omffile, and sgml_ents may be empty in your Makefile.am which
7 +# will "include" this one
8 +# 2) Figures must go under figures/ and be in PNG format
9 +# 3) You should only have one document per directory
11 +# Note that this makefile forces the directory name under
12 +# $prefix/share/gnome/help/ to be the same as the SGML filename
13 +# of the document. This is required by GNOME. eg:
14 +# $prefix/share/gnome/help/fish_applet/C/fish_applet.sgml
15 +# ^^^^^^^^^^^ ^^^^^^^^^^^
17 +# figs A list of screenshots which will be included in EXTRA_DIST
18 +# Note that these should reside in figures/ and should be .png
19 +# files, or you will have to make modifications below.
20 +# docname This is the name of the SGML file: <docname>.sgml
21 +# lang This is the document locale
22 +# omffile This is the name of the OMF file. Convention is to name
23 +# it <docname>-<locale>.omf.
24 +# sgml_ents This is a list of SGML entities which must be installed
25 +# with the main SGML file and included in EXTRA_DIST.
30 +# docname = scrollkeeper-manual
32 +# omffile=scrollkeeper-manual-C.omf
33 +# sgml_ents = fdl.sgml
34 +# include $(top_srcdir)/help/sgmldocs.make
35 +# dist-hook: app-dist-hook
38 +docdir = $(datadir)/gnome/help/$(docname)/$(lang)
40 +doc_DATA = index.html
42 +sgml_files = $(sgml_ents) $(docname).sgml
44 +omf_dir=$(top_srcdir)/omf-install
46 +EXTRA_DIST = $(sgml_files) $(doc_DATA) $(omffile) $(figs)
48 +CLEANFILES = omf_timestamp
54 +omf_timestamp: $(omffile)
55 + -for file in $(omffile); do \
56 + scrollkeeper-preinstall $(docdir)/$(docname).sgml $$file $(omf_dir)/$$file; \
60 +index.html: $(docname)/index.html
61 + -cp $(docname)/index.html .
63 +$(docname).sgml: $(sgml_ents)
66 + cp $(sgml_ents) $$ourdir
69 +# The weird srcdir trick is because the db2html from the Cygnus RPMs
70 +# cannot handle relative filenames
71 +$(docname)/index.html: $(srcdir)/$(docname).sgml
72 + -srcdir=`cd $(srcdir) && pwd`; \
73 + db2html $$srcdir/$(docname).sgml
75 +app-dist-hook: index.html
76 + -$(mkinstalldirs) $(distdir)/$(docname)/stylesheet-images
77 + -$(mkinstalldirs) $(distdir)/figures
78 + -cp $(srcdir)/$(docname)/*.html $(distdir)/$(docname)
79 + -cp $(srcdir)/$(docname)/*.css $(distdir)/$(docname)
80 + -cp $(srcdir)/$(docname)/stylesheet-images/*.gif \
81 + $(distdir)/$(docname)/stylesheet-images
82 + -cp $(srcdir)/figures/*.png \
84 + -if [ -e topic.dat ]; then \
85 + cp $(srcdir)/topic.dat $(distdir); \
88 +install-data-am: index.html omf
89 + -$(mkinstalldirs) $(DESTDIR)$(docdir)/stylesheet-images
90 + -$(mkinstalldirs) $(DESTDIR)$(docdir)/figures
91 + -cp $(srcdir)/$(sgml_files) $(DESTDIR)$(docdir)
92 + -for file in $(srcdir)/$(docname)/*.html $(srcdir)/$(docname)/*.css; do \
93 + basefile=`echo $$file | sed -e 's,^.*/,,'`; \
94 + $(INSTALL_DATA) $$file $(DESTDIR)$(docdir)/$$basefile; \
96 + -for file in $(srcdir)/figures/*.png; do \
97 + basefile=`echo $$file | sed -e 's,^.*/,,'`; \
98 + $(INSTALL_DATA) $$file $(DESTDIR)$(docdir)/figures/$$basefile; \
100 + -for file in $(srcdir)/$(docname)/stylesheet-images/*.gif; do \
101 + basefile=`echo $$file | sed -e 's,^.*/,,'`; \
102 + $(INSTALL_DATA) $$file $(DESTDIR)$(docdir)/stylesheet-images/$$basefile; \
104 + -if [ -e $(srcdir)/topic.dat ]; then \
105 + $(INSTALL_DATA) $(srcdir)/topic.dat $(DESTDIR)$(docdir); \
108 +$(docname).ps: $(srcdir)/$(docname).sgml
109 + -srcdir=`cd $(srcdir) && pwd`; \
110 + db2ps $$srcdir/$(docname).sgml
112 +$(docname).rtf: $(srcdir)/$(docname).sgml
113 + -srcdir=`cd $(srcdir) && pwd`; \
114 + db2ps $$srcdir/$(docname).sgml
117 + -for file in $(srcdir)/$(docname)/stylesheet-images/*.gif; do \
118 + basefile=`echo $$file | sed -e 's,^.*/,,'`; \
119 + rm -f $(docdir)/stylesheet-images/$$basefile; \
121 + -for file in $(srcdir)/figures/*.png; do \
122 + basefile=`echo $$file | sed -e 's,^.*/,,'`; \
123 + rm -f $(docdir)/figures/$$basefile; \
125 + -for file in $(srcdir)/$(docname)/*.html $(srcdir)/$(docname)/*.css; do \
126 + basefile=`echo $$file | sed -e 's,^.*/,,'`; \
127 + rm -f $(DESTDIR)$(docdir)/$$basefile; \
129 + -for file in $(sgml_files); do \
130 + rm -f $(DESTDIR)$(docdir)/$$file; \
132 + -rmdir $(DESTDIR)$(docdir)/stylesheet-images
133 + -rmdir $(DESTDIR)$(docdir)/figures
134 + -rmdir $(DESTDIR)$(docdir)