summaryrefslogtreecommitdiffstats
path: root/docs/man/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'docs/man/Makefile.am')
-rw-r--r--docs/man/Makefile.am17
1 files changed, 13 insertions, 4 deletions
diff --git a/docs/man/Makefile.am b/docs/man/Makefile.am
index 48c26559..90863842 100644
--- a/docs/man/Makefile.am
+++ b/docs/man/Makefile.am
@@ -1,4 +1,4 @@
-dist_man_MANS = \
+man_MANS = \
xrdp-dis.1 \
sesman.ini.5 \
xrdp.ini.5 \
@@ -11,7 +11,16 @@ dist_man_MANS = \
xrdp-sesrun.8 \
xrdp-sessvc.8
-noinst_man_MANS = \
- xrdp-xcon.8
+EXTRA_DIST = $(man_MANS:=.in)
-EXTRA_DIST = $(noinst_man_MANS)
+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'
+
+SUFFIXES = .in
+.in:
+ $(SUBST_VARS) $< > $@
+
+CLEANFILES = $(man_MANS)