summaryrefslogtreecommitdiff
path: root/doc/hackersguide/Makefile.am
blob: 8e7303733afb1c2f0088e4a5c534729b8cb0723f (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
include $(top_srcdir)/misc/Makefile.common

hackersguide_sgml = hackersguide.sgml \
		    intro.sgml \
		    library.sgml \
		    overview.sgml \
		    internals.sgml \
		    stream.sgml \
		    output.sgml

EXTRA_DIST = README $(hackersguide_sgml) architecture.fig library.fig overlays.fig 
docs_DOCS = hackersguide.html architecture.png library.png overlays.png

docdir = $(prefix)/share/doc/xine/hackersguide

install-data-local:
	@documentations='$(docs_DOCS)'; \
	for doc in $$documentations; do \
		destdir=$(DESTDIR)$(docdir); \
		name=`echo $$doc` \
		dir=$$destdir; \
		$(mkinstalldirs) $$dir; \
		$(INSTALL_DATA) $$doc $$dir/$$name; \
		echo "installing $$doc as $$dir/$$name"; \
	done

uninstall-local:
	@documentations='$(docs_DOCS)'; \
	for doc in $$documentations; do \
		destdir=$(DESTDIR)$(docdir); \
		name=`echo $$doc` \
		dir=$$destdir; \
		rm -f $$dir/$$name; \
		echo "removing $$dir/$$name" ; \
	done

docs: $(docs_DOCS)

hackersguide.html: $(hackersguide_sgml)
	sgmltools -b onehtml hackersguide.sgml

%.png: %.fig
	fig2dev -L png -S 4 $< $@