1 # Author: Scott Smedley
3 docdir = @FVWM_DOCDIR@/fvwm
6 XSL_FILE = $(srcdir)/../fvwm.xsl
7 XSL_MAN_FILE = $(srcdir)/../fvwm-man.xsl
8 XSL_PROFILE = $(srcdir)/../docbook-xsl/profiling/profile.xsl
10 HTML_FILES = fvwm.man.html
11 XML_FILES = @DOC_SECTIONS_XML_PATH@
12 EXTRA_DIST = @DOC_SECTIONS_XML@ $(man_MANS) sections
16 doc_DATA = $(HTML_FILES)
17 BUILD_HTML_FILES = $(HTML_FILES)
23 BUILD_MANS = $(man_MANS)
28 all: $(BUILD_HTML_FILES) $(BUILD_MANS)
31 rm -f $(BUILD_HTML_FILES) $(BUILD_MANS)
33 distclean-local: clean
35 #%.html : $(srcdir)/%.xml $(srcdir)/../style.css
36 # $(XSLTPROC) --path "$(top_builddir)/doc":"$(top_srcdir)/doc/commands" \
38 # --stringparam profile.attribute output \
39 # --stringparam profile.value html \
42 # $(XSLTPROC) --path "$(top_builddir)/doc":"$(top_srcdir)/doc/commands" \
44 # --stringparam html.stylesheet "$(srcdir)/../style.css" \
45 # -o $@ $(XSL_FILE) $(<F).p && rm $(<F).p
47 fvwm.man.html: $(XML_FILES) $(XSL_FILE) $(top_builddir)/doc/fvwm.ent @DOC_COMMANDS_XML_PATH@ $(srcdir)/../header.html
48 $(XSLTPROC) --path "$(top_builddir)/doc":"$(top_srcdir)/doc/commands" \
50 --stringparam profile.attribute output \
51 --stringparam profile.value html \
52 -o fvwm.man.html.tmp \
53 $(XSL_PROFILE) "$(srcdir)/fvwm.man.xml"
54 $(XSLTPROC) --path "$(top_builddir)/doc":"$(top_srcdir)/doc/commands" \
56 --stringparam html.stylesheet "../style.css" \
57 --stringparam header.file "$(srcdir)/../header.html" \
58 --stringparam twdt 1 \
59 --stringparam section.autolabel 1 \
60 -o $@ $(XSL_FILE) fvwm.man.html.tmp && rm fvwm.man.html.tmp
62 fvwm.1: $(XML_FILES) $(srcdir)/fvwm.man.xml $(XSL_MAN_FILE) @DOC_COMMANDS_XML_PATH@
63 $(XSLTPROC) --path "$(top_builddir)/doc":"$(top_srcdir)/doc/commands" \
65 --stringparam profile.attribute output \
66 --stringparam profile.value man \
68 $(XSL_PROFILE) "$(srcdir)/fvwm.man.xml"
69 $(XSLTPROC) --path "$(top_builddir)/doc":"$(top_srcdir)/doc/commands" \
71 $(XSL_MAN_FILE) fvwm.1.tmp && rm fvwm.1.tmp
72 # mv fvwm.1 fvwm.1.pre
73 # tbl fvwm.1.pre | sed '/^\.T[SE]$$/d' > fvwm.1 && rm fvwm.1.pre
76 @rm -f "$(DESTDIR)$(mandir)/man1/fvwm2.1"
77 @$(LN_S) fvwm.1 "$(DESTDIR)$(mandir)/man1/fvwm2.1" || \
78 echo "Minor warning: $(mandir)/man1/fvwm2.1 symlink was not created"