blob: 493bcc580e7bc96f0cdc5d44eca0d379ba08290d (
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
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
|
Xtransincludedir = $(includedir)/X11/Xtrans
Xtransinclude_HEADERS = \
Xtrans.h \
Xtrans.c \
Xtransint.h \
Xtranslcl.c \
Xtranssock.c \
Xtranstli.c \
Xtransutil.c \
transport.c
aclocaldir = $(datadir)/aclocal
aclocal_DATA = xtrans.m4
pkgconfigdir = $(datadir)/pkgconfig
pkgconfig_DATA = xtrans.pc
MAINTAINERCLEANFILES = ChangeLog INSTALL
EXTRA_DIST = ${aclocal_DATA} Xtrans.mm
.PHONY: ChangeLog INSTALL
INSTALL:
$(INSTALL_CMD)
ChangeLog:
$(CHANGELOG_CMD)
dist-hook: ChangeLog INSTALL
# Rules to convert documentation from troff to other formats
doc_sources = Xtrans.mm
if ENABLE_DOCS
if HAVE_GROFF_MM
if HAVE_PS2PDF
printable_format = .pdf
else
printable_format = .ps
endif
doc_DATA = $(doc_sources:.mm=.txt) \
$(doc_sources:.mm=$(printable_format))
if HAVE_GROFF_HTML
doc_DATA += $(doc_sources:.mm=.html)
endif
CLEANFILES = $(doc_DATA)
MOSTLYCLEANFILES = index.*
# Pass version string as a troff string for substitution
GROFF_DEFS = -dxV="$(PACKAGE_STRING)"
# -t to run through tbl
GROFF_FLAGS = -t -mm $(GROFF_DEFS)
SUFFIXES = .mm .ps .txt .html .pdf
.mm.ps:
-$(AM_V_GEN) $(GROFF) -Tps $(GROFF_FLAGS) $< 2> index.$@.raw > $@
@if grep '^[^1-9.]' index.$@.raw | grep -v warning; then exit 1; \
else test $$? -le 1; fi
.mm.txt:
$(AM_V_GEN) env GROFF_NO_SGR=TRUE $(GROFF) -Tutf8 $(GROFF_FLAGS) \
$< 2> index.$@.raw > $@
.mm.html:
$(AM_V_GEN) $(GROFF) -Thtml $(GROFF_FLAGS) $< 2> index.$@.raw > $@
.ps.pdf:
$(AM_V_GEN) $(PS2PDF) $< $@
endif HAVE_GROFF_MM
endif ENABLE_DOCS
|