summaryrefslogtreecommitdiffstats
path: root/docs/man/Makefile.am
blob: f6e0bd5a5ff76a75ba05d42e4be22e9627c23bf5 (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
man_MANS = \
  xrdp-dis.1 \
  sesman.ini.5 \
  xrdp.ini.5 \
  xrdp.8 \
  xrdp-chansrv.8 \
  xrdp-genkeymap.8 \
  xrdp-keygen.8 \
  xrdp-sesadmin.8 \
  xrdp-sesman.8 \
  xrdp-sesrun.8 \
  xrdp-sessvc.8

EXTRA_DIST = $(man_MANS:=.in)

SUBST_VARS = sed \
   -e 's|@PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \
   -e 's|@bindir[@]|$(bindir)|g' \
   -e 's|@localstatedir[@]|$(localstatedir)|g' \
   -e 's|@sysconfdir[@]|$(sysconfdir)|g' \
   -e 's|@socketdir[@]|$(socketdir)|g'

subst_verbose = $(subst_verbose_@AM_V@)
subst_verbose_ = $(subst_verbose_@AM_DEFAULT_V@)
subst_verbose_0 = @echo "  SUBST    $@";

SUFFIXES = .in
.in:
	$(subst_verbose)$(SUBST_VARS) $< > $@

CLEANFILES = $(man_MANS)