Use the correct border hints to calculate screen width.
[fvwm.git] / doc / fvwm / Makefile.am
blobba4025480dcb26222593537bea1a6770ac97cefc
1 # Author: Scott Smedley
3 docdir = @FVWM_DOCDIR@/fvwm
4 XSLTPROC = @XSLTPROC@
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
13 man_MANS = fvwm.1
15 if FVWM_BUILD_HTMLDOC
16 doc_DATA = $(HTML_FILES)
17 BUILD_HTML_FILES = $(HTML_FILES)
18 else
19 BUILD_HTML_FILES =
20 endif
22 if FVWM_BUILD_MANDOC
23 BUILD_MANS = $(man_MANS)
24 else
25 BUILD_MANS =
26 endif
28 all: $(BUILD_HTML_FILES) $(BUILD_MANS)
30 clean:
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" \
37 #               --xinclude \
38 #               --stringparam profile.attribute output \
39 #               --stringparam profile.value html \
40 #               -o $(<F).p \
41 #               $(XSL_PROFILE) $<
42 #       $(XSLTPROC) --path "$(top_builddir)/doc":"$(top_srcdir)/doc/commands" \
43 #               --xinclude \
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" \
49                 --xinclude \
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" \
55                 --xinclude \
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" \
64                 --xinclude \
65                 --stringparam profile.attribute output \
66                 --stringparam profile.value man \
67                 -o fvwm.1.tmp \
68                 $(XSL_PROFILE) "$(srcdir)/fvwm.man.xml"
69         $(XSLTPROC) --path "$(top_builddir)/doc":"$(top_srcdir)/doc/commands" \
70                 --xinclude \
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
75 install-data-local:
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"