File: Makefile.am

package info (click to toggle)
chafa 1.18.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,828 kB
  • sloc: ansic: 52,456; xml: 881; sh: 610; makefile: 466; python: 334
file content (103 lines) | stat: -rw-r--r-- 2,601 bytes parent folder | download | duplicates (4)
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
## Process this file with automake to produce Makefile.in

AUTOMAKE_OPTIONS = 1.6

# The name of the module.
DOC_MODULE=chafa

# The top-level SGML file.
DOC_MAIN_SGML_FILE=chafa-docs.xml

content_files = \
	 building.xml \
	 using.xml

# The directory containing the source code. Relative to $(srcdir)
DOC_SOURCE_DIR = $(top_srcdir)/chafa

# Extra options to supply to gtkdoc-scan
SCAN_OPTIONS=--deprecated-guards="G_DISABLE_DEPRECATED" --ignore-decorators="GLIB_VAR|G_GNUC_WARN_UNUSED_RESULT"

# Used for dependencies
HFILE_GLOB = $(top_srcdir)/chafa/chafa-*.h
CFILE_GLOB = $(top_srcdir)/chafa/chafa-*.c

# Ignore some private headers
IGNORE_HFILES = \
	chafa.h \
	chafa-private.h \
	chafa-term-seq-doc-in.h \
	named-colors.h

# Extra options to supply to gtkdoc-mkdb
MKDB_OPTIONS=--output-format=xml --name-space=chafa

FIXXREF_OPTIONS=--extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html/glib

# Images to copy into HTML directory
HTML_IMAGES =

# include common portion ...
include $(top_srcdir)/gtk-doc.make

# Other files to distribute
EXTRA_DIST +=				\
	version.xml.in			\
	style.css

########################################################################

man_MANS =
manhtml =

if ENABLE_MAN

man_MANS += \
	chafa.1

manhtml += chafa.html

all-local: $(manhtml)

XSLTPROC_FLAGS = \
        --nonet \
        --stringparam man.output.quietly 1 \
        --stringparam funcsynopsis.style ansi \
        --stringparam man.th.extra1.suppress 1 \
        --stringparam man.authors.section.enabled 0 \
        --stringparam man.copyright.section.enabled 0 \
        --stringparam root.filename chafa \
        --stringparam html.stylesheet manpage.css

.xml.1:
	$(AM_V_GEN) $(XSLTPROC) $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<

chafa.html: $(srcdir)/chafa.xml
	$(AM_V_GEN) $(XSLTPROC) $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/html/onechunk.xsl $<

dist-local-check-mans-enabled:
	if grep "Man generation disabled" $(man_MANS) >/dev/null; then $(RM) $(man_MANS); fi

else

$(man_MANS) chafa.html:
	echo Man generation disabled.  Creating dummy $@.  Configure with --enable-man to enable it.
	echo Man generation disabled.  Remove this file, configure with --enable-man, and rebuild > $@


dist-local-check-mans-enabled:
	echo "*** --enable-man must be used in order to make dist"
	false

endif

CLEANFILES ?=
CLEANFILES += $(man_MANS) $(manhtml)

EXTRA_DIST += chafa.xml $(man_MANS) $(manhtml) manpage.css

dist-hook-local: dist-local-check-mans-enabled all-local

chafa-docs-clean: clean
	cd $(srcdir) && rm -rf xml html