1 TOPSRCDIR
= @top_srcdir@
10 EXTRASUBDIRS
= samples status
46 winelib-bindlls.sgml \
50 winelib-porting.sgml \
57 $(WINELIB_USER_SRCS
) \
62 MAN_TARGETS
= wine.man
71 $(ALLBOOKS
:%=%/index.html
) \
79 everything
: $(MAN_TARGETS
) $(BOOKS_TARGETS
)
81 html
: $(ALLBOOKS
:%=%/index.html
)
82 pdf
: $(ALLBOOKS
:%=%.pdf
)
83 ps
: $(ALLBOOKS
:%=%.ps
)
85 .PHONY
: everything doc html pdf ps
dist
87 .SUFFIXES
: .sgml
/index.html .pdf .ps
90 $(DB2HTML
) -d
$(SRCDIR
)/default.dsl
-o
$* $<
93 $(DB2PDF
) -d
$(SRCDIR
)/print.dsl
$< >/dev
/null
96 $(DB2PS
) $< >/dev
/null
98 wine-devel.pdf wine-devel.ps wine-devel
/index.html
: $(WINE_DEVEL_SRCS
)
99 wine-faq.pdf wine-faq.ps wine-faq
/index.html
: $(WINE_FAQ_SRCS
)
100 wine-user.pdf wine-user.ps wine-user
/index.html
: $(WINE_USER_SRCS
)
101 winelib-user.pdf winelib-user.ps winelib-user
/index.html
: $(WINELIB_USER_SRCS
)
103 wine.man
: wine.man.in
104 sed
-e
's,@bindir\@,$(bindir),g' -e
's,@dlldir\@,$(dlldir),g' -e
's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR
)/wine.man.in
>$@ ||
($(RM
) $@
&& false
)
106 # Rules for distribution tarballs of formatted docs
108 dist: wine-doc-ps.
tar.gz wine-doc-pdf.
tar.gz wine-doc-html.
tar.gz wine-doc-txt.
tar.gz
110 wine-doc-ps.
tar.gz
: $(ALLBOOKS
:%=%.ps
)
111 tar cf
- $(ALLBOOKS
:%=%.ps
) | gzip
-9 > $@ ||
($(RM
) $@
&& false
)
113 wine-doc-pdf.
tar.gz
: $(ALLBOOKS
:%=%.pdf
)
114 tar cf
- $(ALLBOOKS
:%=%.pdf
) | gzip
-9 > $@ ||
($(RM
) $@
&& false
)
116 wine-doc-html.
tar.gz
: $(ALLBOOKS
:%=%/index.html
)
117 tar cf
- $(ALLBOOKS
:%=%/*.html
) | gzip
-9 > $@ ||
($(RM
) $@
&& false
)
119 wine-doc-txt.
tar.gz
: $(ALLBOOKS
:%=%/index.html
)
120 for i in
$(ALLBOOKS
:%=%/*.html
); do w3m
-dump
$$i > `dirname $$i`/`basename $$i .html`.txt || exit
1; done
121 tar cf
- $(ALLBOOKS
:%=%/*.txt
) | gzip
-9 > $@ ||
($(RM
) $@
&& false
)
123 install:: $(MAN_TARGETS
)
124 $(MKINSTALLDIRS
) $(mandir)/man
$(prog_manext
) $(mandir)/man
$(conf_manext
) $(mandir)/man
$(api_manext
)
125 $(INSTALL_DATA
) wine.man
$(mandir)/man
$(prog_manext
)/wine.
$(prog_manext
)
126 $(INSTALL_DATA
) $(SRCDIR
)/wine.conf.man
$(mandir)/man
$(conf_manext
)/wine.conf.
$(conf_manext
)
129 $(RM
) $(mandir)/man
$(prog_manext
)/wine.
$(prog_manext
)
130 $(RM
) $(mandir)/man
$(conf_manext
)/wine.conf.
$(conf_manext
)
133 for i in
$(SRCDIR
)/man
$(api_manext
)/*; do
$(INSTALL_DATA
) $$i $(mandir)/man
$(api_manext
); done
136 $(RM
) *.aux
*.
dvi *.out
*.pdf
*.ps
*.
tex *.log wine-doc-
*.
tar.gz
$(MAN_TARGETS
)
137 $(RM
) -r
$(ALLBOOKS
) html api-guide man
$(api_manext
) *.junk DBTOHTML_OUTPUT_DIR
*