]> git.pld-linux.org Git - packages/gnome-chess.git/blob - gnome-chess-missing_sgmldocs.make.patch
- updated to 0.3.3,
[packages/gnome-chess.git] / gnome-chess-missing_sgmldocs.make.patch
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
3 @@ -0,0 +1,131 @@
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 
10 +#
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 +#                                 ^^^^^^^^^^^   ^^^^^^^^^^^
16 +# Definitions:
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. 
26 +# eg:
27 +#   figs = \
28 +#          figures/fig1.png            \
29 +#          figures/fig2.png
30 +#   docname = scrollkeeper-manual
31 +#   lang = C
32 +#   omffile=scrollkeeper-manual-C.omf
33 +#   sgml_ents = fdl.sgml
34 +#   include $(top_srcdir)/help/sgmldocs.make
35 +#   dist-hook: app-dist-hook
36 +#
37 +
38 +docdir = $(datadir)/gnome/help/$(docname)/$(lang)
39 +
40 +doc_DATA = index.html
41 +
42 +sgml_files = $(sgml_ents) $(docname).sgml
43 +
44 +omf_dir=$(top_srcdir)/omf-install
45 +
46 +EXTRA_DIST = $(sgml_files) $(doc_DATA) $(omffile) $(figs)
47 +
48 +CLEANFILES = omf_timestamp
49 +
50 +all: index.html omf
51 +
52 +omf: omf_timestamp
53 +
54 +omf_timestamp: $(omffile)
55 +       -for file in $(omffile); do \
56 +         scrollkeeper-preinstall $(docdir)/$(docname).sgml $$file $(omf_dir)/$$file; \
57 +       done
58 +       touch omf_timestamp
59 +
60 +index.html: $(docname)/index.html
61 +       -cp $(docname)/index.html .
62 +
63 +$(docname).sgml: $(sgml_ents)
64 +        ourdir=`pwd`;  \
65 +        cd $(srcdir);   \
66 +        cp $(sgml_ents) $$ourdir
67 +
68 +
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
74 +
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 \
83 +               $(distdir)/figures
84 +       -if [ -e topic.dat ]; then \
85 +               cp $(srcdir)/topic.dat $(distdir); \
86 +        fi
87 +
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; \
95 +       done
96 +       -for file in $(srcdir)/figures/*.png; do \
97 +         basefile=`echo $$file | sed -e  's,^.*/,,'`; \
98 +         $(INSTALL_DATA) $$file $(DESTDIR)$(docdir)/figures/$$basefile; \
99 +       done
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; \
103 +       done
104 +       -if [ -e $(srcdir)/topic.dat ]; then \
105 +               $(INSTALL_DATA) $(srcdir)/topic.dat $(DESTDIR)$(docdir); \
106 +        fi
107 +
108 +$(docname).ps: $(srcdir)/$(docname).sgml
109 +       -srcdir=`cd $(srcdir) && pwd`; \
110 +       db2ps $$srcdir/$(docname).sgml
111 +
112 +$(docname).rtf: $(srcdir)/$(docname).sgml
113 +       -srcdir=`cd $(srcdir) && pwd`; \
114 +       db2ps $$srcdir/$(docname).sgml
115 +
116 +uninstall-local:
117 +       -for file in $(srcdir)/$(docname)/stylesheet-images/*.gif; do \
118 +         basefile=`echo $$file | sed -e  's,^.*/,,'`; \
119 +         rm -f $(docdir)/stylesheet-images/$$basefile; \
120 +       done
121 +       -for file in $(srcdir)/figures/*.png; do \
122 +         basefile=`echo $$file | sed -e  's,^.*/,,'`; \
123 +         rm -f $(docdir)/figures/$$basefile; \
124 +       done
125 +       -for file in $(srcdir)/$(docname)/*.html $(srcdir)/$(docname)/*.css; do \
126 +         basefile=`echo $$file | sed -e 's,^.*/,,'`; \
127 +         rm -f $(DESTDIR)$(docdir)/$$basefile; \
128 +       done
129 +       -for file in $(sgml_files); do \
130 +         rm -f $(DESTDIR)$(docdir)/$$file; \
131 +       done
132 +       -rmdir $(DESTDIR)$(docdir)/stylesheet-images
133 +       -rmdir $(DESTDIR)$(docdir)/figures
134 +       -rmdir $(DESTDIR)$(docdir)
This page took 0.143924 seconds and 3 git commands to generate.