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 57b68b7..13cdc1c 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 = Xfontcache.man
BUILT_SOURCES = shadows.DONE
@@ -69,5 +71,5 @@ Xfontcache_shadows = \
shadows.DONE:
-rm -f $(Xfontcache_shadows:=.@LIB_MAN_SUFFIX@)
(for i in $(Xfontcache_shadows:=.@LIB_MAN_SUFFIX@) ; do \
- echo .so man$(LIB_MAN_SUFFIX)/Xfontcache.$(LIB_MAN_SUFFIX) > $$i; \
+ echo .so man$(LIB_MAN_DIR_SUFFIX)/Xfontcache.$(LIB_MAN_SUFFIX) > $$i; \
done)