summaryrefslogtreecommitdiff
path: root/Xprint
diff options
context:
space:
mode:
Diffstat (limited to 'Xprint')
-rw-r--r--Xprint/doc/Makefile.am18
1 files changed, 13 insertions, 5 deletions
diff --git a/Xprint/doc/Makefile.am b/Xprint/doc/Makefile.am
index 5c7faef1a..348d3aec6 100644
--- a/Xprint/doc/Makefile.am
+++ b/Xprint/doc/Makefile.am
@@ -1,11 +1,19 @@
MAN_SRCS = Xprt.man.pre
-man1_MANS = Xprt.man
+appmandir = $(mandir)/man$(APP_MAN_SUFFIX)
-all-local: $(man1_MANS)
-
-CLEANFILES = $(man1_MANS)
+appman_SOURCES = Xprt.man
+appman_DATA = $(appman_SOURCES:man=@APP_MAN_SUFFIX@)
include $(top_srcdir)/cpprules.in
-EXTRA_DIST = $(MAN_SRCS) Xprt.html Xprt.sgml \ No newline at end of file
+BUILT_SOURCES = $(appman_SOURCES)
+CLEANFILES = $(appman_SOURCES) $(appman_DATA)
+
+SUFFIXES += .$(APP_MAN_SUFFIX) .man
+
+.man.$(APP_MAN_SUFFIX):
+ -rm -f $@
+ $(LN_S) $< $@
+
+EXTRA_DIST = $(MAN_SRCS) Xprt.html Xprt.sgml