summaryrefslogtreecommitdiff
path: root/doc/Makefile.am
blob: f1a595eef3b90d87abd6a0712d7db360911a639d (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
AUTOMAKE_OPTIONS = foreign

ASCIIDOC_ARGS = \
	-n \
	-a toc \
	-a icons

A2X_ARGS = \
	-d manpage \
	-f manpage

dist_doc_DATA = \
	manual.html

dist_man_MANS = \
	calcurse.1

EXTRA_DIST = \
	manual.txt \
	calcurse.1.txt

CLEANFILES = \
	manual.html \
	calcurse.1

docdir = $(datadir)/doc/$(PACKAGE)

.txt.html:
if HAVE_ASCIIDOC
	$(AM_V_GEN) $(ASCIIDOC) $(ASCIIDOC_ARGS) $<
endif

%.1: %.1.txt
if HAVE_A2X
	$(AM_V_GEN) $(A2X) $(A2X_ARGS) $<
endif