summaryrefslogtreecommitdiff
path: root/doc/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'doc/Makefile.am')
-rw-r--r--doc/Makefile.am17
1 files changed, 12 insertions, 5 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 94cc964a8..88a1b9dca 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,18 +1,25 @@
+appmandir = $(mandir)/man$(APP_MAN_SUFFIX)
+
# Xserver.man covers options generic to all X servers built in this tree
-MAN_SRCS = Xserver.man.pre
+appman_SOURCES = Xserver.man.pre
+
+appman_PROCESSED = $(appman_SOURCES:man.pre=man)
-man1_MANS = Xserver.man
+appman_DATA = $(appman_SOURCES:man.pre=@APP_MAN_SUFFIX@)
-all-local: $(man1_MANS)
+BUILT_SOURCES = $(appman_PROCESSED)
-CLEANFILES = $(man1_MANS)
+CLEANFILES = $(appman_PROCESSED) $(appman_DATA)
include $(top_srcdir)/cpprules.in
+.man.$(APP_MAN_SUFFIX):
+ cp $< $@
+
EXTRAMANDEFS = -D__default_font_path__="`echo $(COMPILEDDEFAULTFONTPATH) | sed -e 's/,/, /g'`"
# Docs about X server internals that we ship with source but don't install
DEVEL_DOCS = smartsched
-EXTRA_DIST = $(DEVEL_DOCS) $(MAN_SRCS) \ No newline at end of file
+EXTRA_DIST = $(DEVEL_DOCS) $(appman_SOURCES)