summaryrefslogtreecommitdiff
path: root/asclock/docs/C/Makefile.am
blob: 72fef01095af637598cf511f0a8a412964971d8e (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
## Process this file with automake to produce Makefile.in

figs =

docdir = $(datadir)/gnome/help/asclock_applet/C
doc_DATA =	\
	index.html	\
	topic.dat

# automake does not know anything about .sgml files yet -> EXTRA_DIST
EXTRA_DIST = asclock-applet.sgml asclock.sgml topic.dat $(figs)

# this is taken from gnome-core/gnome-terminal/C/Makefile.am
all: index.html

index.html: $(srcdir)/asclock-applet/index.html
	-cp $(srcdir)/asclock-applet/index.html .

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

dist-hook: index.html
	mkdir $(distdir)/asclock-applet
	-cp $(srcdir)/asclock-applet/*.html $(distdir)/asclock-applet
	-cp $(srcdir)/asclock-applet/*.css  $(distdir)/asclock-applet

install-data-local: index.html
	-$(mkinstalldirs) $(DESTDIR)$(docdir)/fig
	-for file in asclock-applet/*.html asclock-applet/*.css; do \
	  basefile=`echo $$file | sed -e 's,^.*/,,'`; \
	  $(INSTALL_DATA) $$file $(DESTDIR)$(docdir)/$$basefile; \
	done
	-for file in $(srcdir)/*.png; do \
	  basefile=`echo $$file | sed -e 's,^.*/,,'`; \
	  $(INSTALL_DATA) $$file $(DESTDIR)$(docdir)/fig/$$basefile; \
	done

asclock-applet.ps: asclock-applet.sgml asclock.sgml
	-db2ps $<

asclock-applet.rtf: asclock-applet.sgml asclock.sgml
	-db2rtf $<