1 TOPSRCDIR
= @top_srcdir@
11 EXTRASUBDIRS
= samples
45 winelib-bindlls.sgml \
48 winelib-porting.sgml \
54 MAN_TARGETS
= wine.man
65 everything
: $(MAN_TARGETS
) doc
67 html
: $(ALLBOOKS
:%=%.html
) wine-faq.html
68 pdf
: $(ALLBOOKS
:%=%.pdf
)
69 ps
: $(ALLBOOKS
:%=%.ps
)
70 txt
: $(ALLBOOKS
:%=%.txt
)
72 .PHONY
: everything doc html pdf ps
dist
74 .SUFFIXES
: .sgml .html .pdf .ps .txt
88 wine-devel.pdf wine-devel.ps wine-devel.html wine-devel.txt
: $(WINE_DEVEL_SRCS
)
89 wine-user.pdf wine-user.ps wine-user.html wine-user.txt
: $(WINE_USER_SRCS
)
90 wine-faq.pdf wine-faq.ps wine-faq.html wine-faq.txt
: $(WINE_FAQ_SRCS
)
91 winelib-user.pdf winelib-user.ps winelib-user.html winelib-user.txt
: $(WINELIB_USER_SRCS
)
94 sed
-e
's,@bindir\@,$(bindir),g' -e
's,@dlldir\@,$(dlldir),g' -e
's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR
)/wine.man.in
>$@ ||
($(RM
) $@
&& false
)
96 # Rules for distribution tarballs of formatted docs
98 dist: wine-doc-ps.
tar.gz wine-doc-pdf.
tar.gz wine-doc-html.
tar.gz wine-doc-txt.
tar.gz wine-faq.txt
100 wine-doc-ps.
tar.gz
: $(ALLBOOKS
:%=%.ps
)
101 tar cf
- $(ALLBOOKS
:%=%.ps
) | gzip
-9 > $@ ||
($(RM
) $@
&& false
)
103 wine-doc-pdf.
tar.gz
: $(ALLBOOKS
:%=%.pdf
)
104 tar cf
- $(ALLBOOKS
:%=%.pdf
) | gzip
-9 > $@ ||
($(RM
) $@
&& false
)
106 wine-doc-html.
tar.gz
: $(ALLBOOKS
:%=%.html
)
107 tar cf
- $(ALLBOOKS
:%=%.html
) | gzip
-9 > $@ ||
($(RM
) $@
&& false
)
109 wine-doc-txt.
tar.gz
: $(ALLBOOKS
:%=%.txt
)
110 tar cf
- $(ALLBOOKS
:%=%.txt
) | gzip
-9 > $@ ||
($(RM
) $@
&& false
)
112 install:: $(MAN_TARGETS
)
113 $(MKINSTALLDIRS
) $(mandir)/man
$(prog_manext
) $(mandir)/man
$(conf_manext
) $(mandir)/man
$(api_manext
)
114 $(INSTALL_DATA
) wine.man
$(mandir)/man
$(prog_manext
)/wine.
$(prog_manext
)
115 $(INSTALL_DATA
) $(SRCDIR
)/wine.conf.man
$(mandir)/man
$(conf_manext
)/wine.conf.
$(conf_manext
)
118 $(RM
) $(mandir)/man
$(prog_manext
)/wine.
$(prog_manext
)
119 $(RM
) $(mandir)/man
$(conf_manext
)/wine.conf.
$(conf_manext
)
122 for i in
$(SRCDIR
)/man
$(api_manext
)/*; do
$(INSTALL_DATA
) $$i $(mandir)/man
$(api_manext
); done
125 $(RM
) *.aux
*.
dvi *.out
*.
tex *.log wine-doc-
*.
tar.gz wine-faq.html wine-faq.txt
$(MAN_TARGETS
)
126 $(RM
) $(ALLBOOKS
:%=%.ps
) $(ALLBOOKS
:%=%.pdf
) $(ALLBOOKS
:%=%.html
) $(ALLBOOKS
:%=%.txt
)
127 $(RM
) -r html api-guide man
$(api_manext
) *.junk DBTOHTML_OUTPUT_DIR
*