summaryrefslogtreecommitdiff
path: root/man/Makefile.am
blob: 906b239f50cc81bcab14b8293467a483c2470fad (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
appmandir = $(APP_MAN_DIR)
appman_PRE = 				\
	intel_audio_dump.man		\
	intel_bios_dumper.man		\
	intel_bios_reader.man		\
	intel_error_decode.man		\
	intel_gpu_frequency.man		\
	intel_gpu_top.man		\
	intel_gtt.man			\
	intel_infoframes.man		\
	intel_lid.man			\
	intel_panel_fitter.man		\
	intel_reg_dumper.man		\
	intel_reg_read.man		\
	intel_reg_write.man		\
	intel_stepping.man		\
	intel_upload_blit_large.man	\
	intel_upload_blit_large_gtt.man \
	intel_upload_blit_large_map.man \
	intel_upload_blit_small.man

appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX))

# man pages in rst, only used if we have rst2man
appman_RST =				\
	intel_reg.rst

if HAVE_RST2MAN
appman_DATA += $(appman_RST:rst=$(APP_MAN_SUFFIX))
endif

EXTRA_DIST = $(appman_PRE) $(appman_RST)
CLEANFILES = $(appman_DATA)

# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
SUFFIXES = .$(APP_MAN_SUFFIX) .man

.man.$(APP_MAN_SUFFIX):
	$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@

# FIXME: handle MAN_SUBST in rst
.rst.$(APP_MAN_SUFFIX):
	$(AM_V_GEN)rst2man < $< > $@