2 # arch-tag: Makefile rules for building GNOMEish Docbook documentation
3 # No modifications of this Makefile should be necessary.
5 # To use this template:
6 # 1) Define: figdir, docname, lang, omffile, and entities in
7 # your Makefile.am file for each document directory,
8 # although figdir, omffile, and entities may be empty
9 # 2) Make sure the Makefile in (1) also includes
10 # "include $(top_srcdir)/xmldocs.make" and
11 # "dist-hook: app-dist-hook".
12 # 3) Optionally define 'entities' to hold xml entities which
13 # you would also like installed
14 # 4) Figures must go under $(figdir)/ and be in PNG format
15 # 5) You should only have one document per directory
16 # 6) Note that the figure directory, $(figdir)/, should not have its
17 # own Makefile since this Makefile installs those figures.
19 # example Makefile.am:
21 # docname = scrollkeeper-manual
23 # omffile=scrollkeeper-manual-C.omf
25 # include $(top_srcdir)/xmldocs.make
26 # dist-hook: app-dist-hook
29 # This file was taken from scrollkeeper_example2, a package illustrating
30 # how to install documentation and OMF files for use with ScrollKeeper
31 # 0.3.x and 0.4.x. For more information, see:
32 # http://scrollkeeper.sourceforge.net/
33 # Version: 0.1.2 (last updated: March 20, 2002)
37 # ************* Begin of section some packagers may need to modify **************
38 # This variable (docdir) specifies where the documents should be installed.
39 # This default value should work for most packages.
40 # docdir = $(datadir)/@PACKAGE@/doc/$(docname)/$(lang)
41 docdir
= $(datadir)/gnome
/help
/$(docname
)/$(lang
)
43 # ************** You should not have to edit below this line *******************
44 xml_files
= $(entities
) $(docname
).xml
46 EXTRA_DIST
= $(xml_files
) $(omffile
)
47 CLEANFILES
= omf_timestamp
49 # If the following file is in a subdir (like help/) you need to add that to the path
50 include $(top_srcdir
)/omf.make
55 if
test "$(figdir)"; then \
56 $(mkinstalldirs
) $(distdir
)/$(figdir
); \
57 for file in
$(srcdir)/$(figdir
)/*.png
; do \
58 basefile
=`echo $$file | sed -e 's,^.*/,,'`; \
59 $(INSTALL_DATA
) $$file $(distdir
)/$(figdir
)/$$basefile; \
63 install-data-local
: omf
64 $(mkinstalldirs
) $(DESTDIR
)$(docdir
)
65 for file in
$(xml_files
); do \
66 cp
$(srcdir)/$$file $(DESTDIR
)$(docdir
); \
68 if
test "$(figdir)"; then \
69 $(mkinstalldirs
) $(DESTDIR
)$(docdir
)/$(figdir
); \
70 for file in
$(srcdir)/$(figdir
)/*.png
; do \
71 basefile
=`echo $$file | sed -e 's,^.*/,,'`; \
72 $(INSTALL_DATA
) $$file $(DESTDIR
)$(docdir
)/$(figdir
)/$$basefile; \
76 install-data-hook
: install-data-hook-omf
78 uninstall-local
: uninstall-local-doc uninstall-local-omf
81 -if
test "$(figdir)"; then \
82 for file in
$(srcdir)/$(figdir
)/*.png
; do \
83 basefile
=`echo $$file | sed -e 's,^.*/,,'`; \
84 rm -f
$(DESTDIR
)$(docdir
)/$(figdir
)/$$basefile; \
86 rmdir
$(DESTDIR
)$(docdir
)/$(figdir
); \
88 -for file in
$(xml_files
); do \
89 rm -f
$(DESTDIR
)$(docdir
)/$$file; \
91 -rmdir
$(DESTDIR
)$(docdir
)