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

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

# automake does not know anything about .sgml files yet -> EXTRA_DIST
EXTRA_DIST =	\
	mini-commander.sgml		\
	topic.dat			\
	fig/mini-commander.png		\
	fig/mini-commander-prefs-1.png	\
	fig/mini-commander-prefs-2.png

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

index.html: mini-commander/index.html
	-cp mini-commander/index.html .

gpl2.sgml: $(top_srcdir)/docs/C/gpl2.sgml
	-cp $(top_srcdir)/docs/C/gpl2.sgml .

mini-commander/index.html: $(srcdir)/mini-commander.sgml gpl2.sgml
	-srcdir=`cd $(srcdir) && pwd`; \
	cat $(srcdir)/../../ChangeLog | sed 's/</\&lt;/g; s/>/\&gt;/g' > $$srcdir/change-log.txt ;	\
	cat $(srcdir)/../../TODO | sed 's/</\&lt;/g; s/>/\&gt;/g' > $$srcdir/todo.txt ;	\
	cat $(srcdir)/../../NEWS | sed 's/</\&lt;/g; s/>/\&gt;/g' > $$srcdir/news.txt ;	\
	db2html $$srcdir/mini-commander.sgml

dist-hook: index.html
	mkdir $(distdir)/mini-commander
	-cp $(srcdir)/mini-commander/*.html $(distdir)/mini-commander
	-cp $(srcdir)/mini-commander/*.css $(distcidr)/mini-commander

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

gnome-terminal.ps: gnome-terminal.sgml
	-db2ps $<

gnome-terminal.rtf: gnome-terminal.sgml
	-db2rtf $<