1 TOPSRCDIR
= @top_srcdir@
11 EXTRASUBDIRS
= samples status
45 winelib-bindlls.sgml \
49 winelib-porting.sgml \
59 $(WINELIB_USER_SRCS
) \
65 MAN_TARGETS
= wine.man
75 $(ALLBOOKS
:%=%/index.html
) \
83 everything
: $(MAN_TARGETS
) $(BOOKS_TARGETS
)
85 html
: $(ALLBOOKS
:%=%/index.html
)
86 pdf
: $(ALLBOOKS
:%=%.pdf
)
87 ps
: $(ALLBOOKS
:%=%.ps
)
89 # this is the all-in-one book, not built by default
90 wine-doc
: wine-doc
/index.html wine-doc.pdf wine-doc.ps
92 .PHONY
: everything doc html pdf ps wine-doc
dist
94 .SUFFIXES
: .sgml
/index.html .pdf .ps
97 $(DB2HTML
) -d
$(SRCDIR
)/default.dsl
-o
$* $<
100 $(DB2PDF
) -d
$(SRCDIR
)/print.dsl
$< >/dev
/null
103 $(DB2PS
) $< >/dev
/null
105 wine-devel.pdf wine-devel.ps wine-devel
/index.html
: $(WINE_DEVEL_SRCS
)
106 wine-faq.pdf wine-faq.ps wine-faq
/index.html
: $(WINE_FAQ_SRCS
)
107 wine-pkg.pdf wine-pkg.ps wine-pkg
/index.html
: $(WINE_PKG_SRCS
)
108 wine-user.pdf wine-user.ps wine-user
/index.html
: $(WINE_USER_SRCS
)
109 winelib-user.pdf winelib-user.ps winelib-user
/index.html
: $(WINELIB_USER_SRCS
)
110 wine-doc.pdf wine-doc.ps wine-doc
/index.html
: $(WINE_DOC_SRCS
)
112 wine.man
: wine.man.in
113 sed
-e
's,@bindir\@,$(bindir),g' -e
's,@dlldir\@,$(dlldir),g' -e
's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR
)/wine.man.in
>$@ ||
$(RM
) $@
115 # Rules for distribution tarballs of formatted docs
117 dist: wine-doc-ps.
tar.gz wine-doc-pdf.
tar.gz wine-doc-html.
tar.gz wine-doc-txt.
tar.gz
119 wine-doc-ps.
tar.gz
: $(ALLBOOKS
:%=%.ps
)
120 tar cf
- $(ALLBOOKS
:%=%.ps
) | gzip
-9 > $@ ||
$(RM
) $@
122 wine-doc-pdf.
tar.gz
: $(ALLBOOKS
:%=%.pdf
)
123 tar cf
- $(ALLBOOKS
:%=%.pdf
) | gzip
-9 > $@ ||
$(RM
) $@
125 wine-doc-html.
tar.gz
: $(ALLBOOKS
:%=%/index.html
)
126 tar cf
- $(ALLBOOKS
:%=%/*.html
) | gzip
-9 > $@ ||
$(RM
) $@
128 wine-doc-txt.
tar.gz
: $(ALLBOOKS
:%=%/index.html
)
129 for i in
$(ALLBOOKS
:%=%/*.html
); do w3m
-dump
$$i > `dirname $$i`/`basename $$i .html`.txt || exit
1; done
130 tar cf
- $(ALLBOOKS
:%=%/*.txt
) | gzip
-9 > $@ ||
$(RM
) $@
132 install:: $(MAN_TARGETS
)
133 $(MKINSTALLDIRS
) $(mandir)/man
$(prog_manext
) $(mandir)/man
$(conf_manext
) $(mandir)/man
$(api_manext
)
134 $(INSTALL_DATA
) wine.man
$(mandir)/man
$(prog_manext
)/wine.
$(prog_manext
)
135 $(INSTALL_DATA
) $(SRCDIR
)/wine.conf.man
$(mandir)/man
$(conf_manext
)/wine.conf.
$(conf_manext
)
138 $(RM
) $(mandir)/man
$(prog_manext
)/wine.
$(prog_manext
)
139 $(RM
) $(mandir)/man
$(conf_manext
)/wine.conf.
$(conf_manext
)
142 for i in
$(SRCDIR
)/man
$(api_manext
)/*; do
$(INSTALL_DATA
) $$i $(mandir)/man
$(api_manext
); done
145 $(RM
) *.aux
*.
dvi *.out
*.pdf
*.ps
*.
tex *.log wine-doc-
*.
tar.gz
$(MAN_TARGETS
)
146 $(RM
) -r wine-doc
$(ALLBOOKS
) html api-guide man
$(api_manext
) *.junk DBTOHTML_OUTPUT_DIR
*