summaryrefslogtreecommitdiff
path: root/libgphoto2_port/doc/Makefile.am
blob: db893712c8ef7c0fdcec2c4d908edc0689bab3f9 (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
## Process this file with automake to produce Makefile.in

# The name of the module.
DOC_MODULE=gphoto2-port

# The top-level SGML file.
DOC_MAIN_SGML_FILE=gphoto2-port-api.sgml

# The directory containing the source code (if it contains documentation).
DOC_SOURCE_DIR=$(top_srcdir)/libgphoto2_port

EXTRA_DIST=gphoto2-port-api.sgml

if ENABLE_GTK_DOC
HTML_DIR=$(datadir)/gphoto2-port/html

TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)

scan:
	cd $(srcdir) && gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR)

templates: scan
	cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE)

sgml:
	gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR)

html:
	if ! test -d html ; then mkdir html ; fi
	-cd html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
endif

clean-local:
	rm -f *~ *.bak *.hierarchy *.signals *.args *-unused.txt

maintainer-clean-local: clean
	rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt 

if ENABLE_GTK_DOC
install-data-local:
	$(INSTALL) -d -m 0755 $(TARGET_DIR)
	$(INSTALL_DATA) $(srcdir)/html/*.html $(TARGET_DIR)
	$(INSTALL_DATA) $(srcdir)/html/index.sgml $(TARGET_DIR)
	gtkdoc-fixxref --module=$(DOC_MODULE) --html-dir=$(HTML_DIR)

dist-hook:
	(cd $(srcdir) ; tar cvf - html) | (cd $(distdir); tar xf -)

.PHONY : html sgml templates scan
endif