summaryrefslogtreecommitdiff
path: root/man/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'man/Makefile.am')
-rw-r--r--man/Makefile.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/man/Makefile.am b/man/Makefile.am
index 00778a8..267572d 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -10,6 +10,9 @@ CLEANFILES = $(libman_DATA)
SUFFIXES = .$(LIB_MAN_SUFFIX) .man
+# Strings to replace in man pages
+XORGRELSTRING = @PACKAGE_STRING@
+
.man.$(LIB_MAN_SUFFIX):
-rm -f $@
- $(LN_S) $< $@
+ sed 's/__xorgversion__/"$(XORGRELSTRING)"/; s/__LIB_MAN_SUFFIX__/$(LIB_MAN_SUFFIX)/' < $< > $@