Propagate Layer changes via Style command on-the-fly.
[fvwm.git] / doc / commands / Makefile.am
blobc5a12565507f13b3fce2aac7008aa9301ce95240
1 docdir = @FVWM_DOCDIR@/commands
2 XSLTPROC = @XSLTPROC@
4 XSL_FILE = $(srcdir)/../fvwm.xsl
5 XSL_PROFILE = $(srcdir)/../docbook-xsl/profiling/profile.xsl
7 EXTRA_DIST = @DOC_COMMANDS_XML@ WindowsDesk.xml
9 if FVWM_BUILD_HTMLDOC
10 doc_DATA = @DOC_COMMANDS_HTML@ WindowsDesk.html
11 all: @DOC_COMMANDS_HTML@  WindowsDesk.html
12 endif
14 clean:
15         rm -f @DOC_COMMANDS_HTML@ WindowsDesk.html
17 distclean-local: clean
19 # All HTML output is generated from XML files.
20 %.html : $(srcdir)/%.xml $(srcdir)/../header.html $(srcdir)/../style.css
21         $(XSLTPROC) --path "$(top_builddir)/doc" --xinclude \
22                 --stringparam profile.attribute output \
23                 --stringparam profile.value html \
24                 -o $(<F).p \
25                 $(XSL_PROFILE) $<
26         $(XSLTPROC) --path "$(top_builddir)/doc" --xinclude \
27                 --stringparam html.stylesheet "$(srcdir)/../style.css" \
28                 --stringparam header.file "$(srcdir)/../header.html" \
29                 -o $@ $(XSL_FILE) $(<F).p && rm $(<F).p