summaryrefslogtreecommitdiff
path: root/applet-docs.make
blob: 9c56f99cdf4c222df169c4544a842879466acd68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# This file gets included by the applets' Makefile.am
# they should set $(applet) to their name, and $(figs)
# to the images they reference
#
# Sample:
#
# applet = modemlights
# lang = C
# figs = modemlights-advpref.png  modemlights-prefs.png  modemlights.png
# include $(top_srcdir)/applet-docs.make

docdir = $(datadir)/gnome/help/$(applet)_applet/$(lang)
doc_DATA =	\
	index.html	\
	topic.dat	\
	$(figs)

sgml_files = \
	$(sgml_ents)		\
	$(applet)_applet.sgml

#Scrollkeeper related stuff
omf_dir=$(top_srcdir)/omf-install

# automake does not know anything about .sgml files yet -> EXTRA_DIST
EXTRA_DIST = $(sgml_files) $(doc_DATA) $(omffiles)

all: index.html
	-scrollkeeper-preinstall $(DESTDIR)$(docdir)/$(applet)_applet.sgml $(omffiles) $(omf_dir)/$(omffiles)


index.html: $(applet)_applet/index.html
	-cp $(applet)_applet/index.html .
	
$(applet)_applet.sgml: $(sgml_ents)
	-ourdir=`pwd`;	\
	cd $(srcdir);	\
	cp $(sgml_ents) $$ourdir

$(applet)_applet/index.html: $(applet)_applet.sgml
	-srcdir=`cd $(srcdir) && pwd`; \
	db2html $$srcdir/$(applet)_applet.sgml

applet-dist-hook: index.html
	-$(mkinstalldirs) $(distdir)/$(applet)_applet/stylesheet-images
	-cp $(srcdir)/$(applet)_applet/*.html $(distdir)/$(applet)_applet
	-cp $(srcdir)/$(applet)_applet/*.css  $(distdir)/$(applet)_applet
	-cp $(srcdir)/$(applet)_applet/*.png  $(distdir)/$(applet)_applet
	-cp $(srcdir)/$(applet)_applet/stylesheet-images/*.png \
		$(distdir)/$(applet)_applet/stylesheet-images
	-cp $(srcdir)/$(applet)_applet/stylesheet-images/*.gif \
		$(distdir)/$(applet)_applet/stylesheet-images

install-data-am: index.html
	-$(mkinstalldirs) $(DESTDIR)$(docdir)/stylesheet-images
	-cp $(srcdir)/topic.dat $(DESTDIR)$(docdir)
	-cp $(srcdir)/$(sgml_files) $(DESTDIR)$(docdir)
	-for file in \
		$(applet)_applet/*.html	\
		$(applet)_applet/*.css	\
		$(srcdir)/*.png; do\
	  basefile=`echo $$file | sed -e 's,^.*/,,'`; \
	  $(INSTALL_DATA) $$file $(DESTDIR)$(docdir)/$$basefile; \
	done
	-for file in \
		$(applet)_applet/stylesheet-images/*.png; do \
	  basefile=`echo $$file | sed -e 's,^.*/,,'`; \
	  $(INSTALL_DATA) $$file $(DESTDIR)$(docdir)/stylesheet-images/$$basefile; \
	done
	-for file in \
		$(applet)_applet/stylesheet-images/*.gif; do \
	  basefile=`echo $$file | sed -e 's,^.*/,,'`; \
	  $(INSTALL_DATA) $$file $(DESTDIR)$(docdir)/stylesheet-images/$$basefile; \
	done

$(applet)_applet.ps: $(srcdir)/$(applet)_applet.sgml $(srcdir)/$(applet).sgml
	-srcdir=`cd $(srcdir) && pwd`; \
	db2ps $$srcdir/$(applet)_applet.sgml

$(applet)_applet.rtf: $(srcdir)/$(applet)_applet.sgml $(srcdir)/$(applet).sgml
	-srcdir=`cd $(srcdir) && pwd`; \
	db2ps $$srcdir/$(applet)_applet.sgml