summaryrefslogtreecommitdiff
path: root/man/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'man/Makefile.am')
-rw-r--r--man/Makefile.am4
1 files changed, 3 insertions, 1 deletions
diff --git a/man/Makefile.am b/man/Makefile.am
index 567d5a6..cd175c5 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -27,6 +27,8 @@
libmandir = $(LIB_MAN_DIR)
+LIB_MAN_DIR_SUFFIX = $(LIB_MAN_DIR:@mandir@/man%=%)
+
libman_PRE = Xrandr.man
libman_DATA = $(libman_PRE:man=@LIB_MAN_SUFFIX@) \
@@ -76,5 +78,5 @@ Xrandr_shadows = \
shadows.DONE:
-rm -f $(Xrandr_shadows:=.@LIB_MAN_SUFFIX@)
(for i in $(Xrandr_shadows:=.@LIB_MAN_SUFFIX@) ; do \
- echo .so man$(LIB_MAN_SUFFIX)/Xrandr.$(LIB_MAN_SUFFIX) > $$i; \
+ echo .so man$(LIB_MAN_DIR_SUFFIX)/Xrandr.$(LIB_MAN_SUFFIX) > $$i; \
done)