1 TOPSRCDIR = @top_srcdir@
11 EXTRASUBDIRS = samples status
47 winelib-bindlls.sgml \
51 winelib-porting.sgml \
61 $(WINELIB_USER_SRCS) \
67 MAN_TARGETS = wine.man
77 $(ALLBOOKS:%=%/index.html) \
85 everything: $(MAN_TARGETS) $(BOOKS_TARGETS)
87 html: $(ALLBOOKS:%=%/index.html)
88 pdf: $(ALLBOOKS:%=%.pdf)
89 ps: $(ALLBOOKS:%=%.ps)
91 # this is the all-in-one book, not built by default
92 wine-doc: wine-doc/index.html wine-doc.pdf wine-doc.ps
94 .PHONY: everything doc html pdf ps wine-doc dist
96 .SUFFIXES: .sgml /index.html .pdf .ps
99 $(DB2HTML) -d $(SRCDIR)/default.dsl -o $* $<
102 $(DB2PDF) -d $(SRCDIR)/print.dsl $< >/dev/null
105 $(DB2PS) $< >/dev/null
107 wine-devel.pdf wine-devel.ps wine-devel/index.html: $(WINE_DEVEL_SRCS)
108 wine-faq.pdf wine-faq.ps wine-faq/index.html: $(WINE_FAQ_SRCS)
109 wine-pkg.pdf wine-pkg.ps wine-pkg/index.html: $(WINE_PKG_SRCS)
110 wine-user.pdf wine-user.ps wine-user/index.html: $(WINE_USER_SRCS)
111 winelib-user.pdf winelib-user.ps winelib-user/index.html: $(WINELIB_USER_SRCS)
112 wine-doc.pdf wine-doc.ps wine-doc/index.html: $(WINE_DOC_SRCS)
114 wine.man: wine.man.in
115 sed -e 's,@bindir\@,$(bindir),g' -e 's,@dlldir\@,$(dlldir),g' -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR)/wine.man.in >$@ || $(RM) $@
117 # Rules for distribution tarballs of formatted docs
119 dist: wine-doc-ps.tar.gz wine-doc-pdf.tar.gz wine-doc-html.tar.gz wine-doc-txt.tar.gz
121 wine-doc-ps.tar.gz: $(ALLBOOKS:%=%.ps)
122 tar cf - $(ALLBOOKS:%=%.ps) | gzip -9 > $@ || $(RM) $@
124 wine-doc-pdf.tar.gz: $(ALLBOOKS:%=%.pdf)
125 tar cf - $(ALLBOOKS:%=%.pdf) | gzip -9 > $@ || $(RM) $@
127 wine-doc-html.tar.gz: $(ALLBOOKS:%=%/index.html)
128 tar cf - $(ALLBOOKS:%=%/*.html) | gzip -9 > $@ || $(RM) $@
130 wine-doc-txt.tar.gz: $(ALLBOOKS:%=%/index.html)
131 for i in $(ALLBOOKS:%=%/*.html); do w3m -dump $$i > `dirname $$i`/`basename $$i .html`.txt || exit 1; done
132 tar cf - $(ALLBOOKS:%=%/*.txt) | gzip -9 > $@ || $(RM) $@
134 install:: $(MAN_TARGETS)
135 $(MKINSTALLDIRS) $(mandir)/man$(prog_manext) $(mandir)/man$(conf_manext) $(mandir)/man$(api_manext)
136 $(INSTALL_DATA) wine.man $(mandir)/man$(prog_manext)/wine.$(prog_manext)
137 $(INSTALL_DATA) $(SRCDIR)/wine.conf.man $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
140 $(RM) $(mandir)/man$(prog_manext)/wine.$(prog_manext)
141 $(RM) $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
144 for i in $(SRCDIR)/man$(api_manext)/*; do $(INSTALL_DATA) $$i $(mandir)/man$(api_manext); done
147 $(RM) *.aux *.dvi *.out *.pdf *.ps *.tex *.log wine-doc-*.tar.gz $(MAN_TARGETS)
148 $(RM) -r wine-doc $(ALLBOOKS) html api-guide man$(api_manext) *.junk DBTOHTML_OUTPUT_DIR*