1 TOPSRCDIR = @top_srcdir@
11 EXTRASUBDIRS = samples
44 winelib-bindlls.sgml \
47 winelib-porting.sgml \
53 MAN_TARGETS = wine.man
64 everything: $(MAN_TARGETS) doc
66 html: $(ALLBOOKS:%=%.html) wine-faq.html
67 pdf: $(ALLBOOKS:%=%.pdf)
68 ps: $(ALLBOOKS:%=%.ps)
69 txt: $(ALLBOOKS:%=%.txt)
71 .PHONY: everything doc html pdf ps dist
73 .SUFFIXES: .sgml .html .pdf .ps .txt
87 wine-devel.pdf wine-devel.ps wine-devel.html wine-devel.txt: $(WINE_DEVEL_SRCS)
88 wine-user.pdf wine-user.ps wine-user.html wine-user.txt: $(WINE_USER_SRCS)
89 wine-faq.pdf wine-faq.ps wine-faq.html wine-faq.txt: $(WINE_FAQ_SRCS)
90 winelib-user.pdf winelib-user.ps winelib-user.html winelib-user.txt: $(WINELIB_USER_SRCS)
93 sed -e 's,@bindir\@,$(bindir),g' -e 's,@dlldir\@,$(dlldir),g' -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR)/wine.man.in >$@ || ($(RM) $@ && false)
95 # Rules for distribution tarballs of formatted docs
97 dist: wine-doc-ps.tar.gz wine-doc-pdf.tar.gz wine-doc-html.tar.gz wine-doc-txt.tar.gz wine-faq.txt
99 wine-doc-ps.tar.gz: $(ALLBOOKS:%=%.ps)
100 tar cf - $(ALLBOOKS:%=%.ps) | gzip -9 > $@ || ($(RM) $@ && false)
102 wine-doc-pdf.tar.gz: $(ALLBOOKS:%=%.pdf)
103 tar cf - $(ALLBOOKS:%=%.pdf) | gzip -9 > $@ || ($(RM) $@ && false)
105 wine-doc-html.tar.gz: $(ALLBOOKS:%=%.html)
106 tar cf - $(ALLBOOKS:%=%.html) | gzip -9 > $@ || ($(RM) $@ && false)
108 wine-doc-txt.tar.gz: $(ALLBOOKS:%=%.txt)
109 tar cf - $(ALLBOOKS:%=%.txt) | gzip -9 > $@ || ($(RM) $@ && false)
111 install:: $(MAN_TARGETS)
112 $(MKINSTALLDIRS) $(mandir)/man$(prog_manext) $(mandir)/man$(conf_manext) $(mandir)/man$(api_manext)
113 $(INSTALL_DATA) wine.man $(mandir)/man$(prog_manext)/wine.$(prog_manext)
114 $(INSTALL_DATA) $(SRCDIR)/wine.conf.man $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
117 $(RM) $(mandir)/man$(prog_manext)/wine.$(prog_manext)
118 $(RM) $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
121 for i in $(SRCDIR)/man$(api_manext)/*; do $(INSTALL_DATA) $$i $(mandir)/man$(api_manext); done
124 $(RM) *.aux *.dvi *.out *.tex *.log wine-doc-*.tar.gz wine-faq.html wine-faq.txt $(MAN_TARGETS)
125 $(RM) $(ALLBOOKS:%=%.ps) $(ALLBOOKS:%=%.pdf) $(ALLBOOKS:%=%.html) $(ALLBOOKS:%=%.txt)
126 $(RM) -r html api-guide man$(api_manext) *.junk DBTOHTML_OUTPUT_DIR*