summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 111ca65..7389323 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -26,6 +26,13 @@ sessreg_LDADD = $(SESSREG_LIBS)
sessreg_SOURCES = \
sessreg.c
+XORGRELSTRING = @PACKAGE_STRING@
+ XORGMANNAME = X Version 11
-dist_man1_MANS = \
- sessreg.man
+sessreg.1: sessreg.man
+ sed 's/__xorgversion__/"$(XORGRELSTRING)" "$(XORGMANNAME)"/' \
+ < sessreg.man > sessreg.1
+
+man1_MANS = sessreg.1
+CLEANFILES = $(man1_MANS)
+EXTRA_DIST = sessreg.man