blob: 6cca0bf3c3d775c34f24e579ad395e394e87f9de [file] [log] [blame]
Alexandre Julliardd37eb361997-07-20 16:23:21 +00001TOPSRCDIR = @top_srcdir@
2TOPOBJDIR = ..
3SRCDIR = @srcdir@
4VPATH = @srcdir@
5MODULE = none
Vincent Béron1d8cb6e2002-11-23 01:20:02 +00006DB2HTML = @DB2HTML@
7DB2PDF = @DB2PDF@
8DB2PS = @DB2PS@
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00009DB2TXT = @DB2TXT@
Alexandre Julliard641ee761997-08-04 16:34:36 +000010
Gerald Pfeiferf3257ab2003-10-02 04:28:17 +000011EXTRASUBDIRS = samples
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000012
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000013WINE_USER_SRCS = \
John R. Sheets1e8e5ba2000-08-08 01:24:00 +000014 bugs.sgml \
Andreas Mohr56e6cd02003-04-01 03:26:13 +000015 compiling.sgml \
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000016 configuring.sgml \
17 fonts.sgml \
18 getting.sgml \
Andreas Mohr56e6cd02003-04-01 03:26:13 +000019 glossary.sgml \
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000020 installing.sgml \
21 introduction.sgml \
22 printing.sgml \
23 registry.sgml \
24 running.sgml
25
26WINE_DEVEL_SRCS = \
27 architecture.sgml \
John R. Sheets1e8e5ba2000-08-08 01:24:00 +000028 consoles.sgml \
John R. Sheetsd9e064f2000-12-13 21:52:37 +000029 cvs-regression.sgml \
Chris Morgan5a6d2312004-03-20 19:23:56 +000030 ddraw.sgml \
John R. Sheets1e8e5ba2000-08-08 01:24:00 +000031 debugger.sgml \
32 debugging.sgml \
John R. Sheets1e8e5ba2000-08-08 01:24:00 +000033 documentation.sgml \
John R. Sheets1e8e5ba2000-08-08 01:24:00 +000034 i18n.sgml \
35 implementation.sgml \
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000036 multimedia.sgml \
John R. Sheetsd9e064f2000-12-13 21:52:37 +000037 ole.sgml \
John R. Sheets1e8e5ba2000-08-08 01:24:00 +000038 opengl.sgml \
John R. Sheets1e8e5ba2000-08-08 01:24:00 +000039 patches.sgml \
40 porting.sgml \
Dimitrie O. Paun0698b912003-09-22 21:30:45 +000041 testing.sgml
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000042
43WINELIB_USER_SRCS = \
John R. Sheets1828e592001-01-24 19:36:24 +000044 winelib-bindlls.sgml \
45 winelib-intro.sgml \
46 winelib-mfc.sgml \
John R. Sheets1828e592001-01-24 19:36:24 +000047 winelib-porting.sgml \
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000048 winelib-toolkit.sgml
49
Alexandre Julliard492e9632002-12-03 23:35:32 +000050WINE_FAQ_SRCS = \
51 faq.sgml
52
Alexandre Julliardf5818d22002-02-14 19:47:29 +000053MAN_TARGETS = wine.man
54
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000055ALLBOOKS = \
56 wine-devel \
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000057 wine-user \
58 winelib-user
59
Alexandre Julliard5b80ce32002-07-01 18:23:38 +000060all: $(MAN_TARGETS)
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000061
Alexandre Julliardd37eb361997-07-20 16:23:21 +000062@MAKE_RULES@
63
Dimitrie O. Paun66824e52003-09-16 01:03:54 +000064everything: $(MAN_TARGETS) doc
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +000065doc: html pdf ps txt
Dimitrie O. Paun6f7cbc02003-09-19 00:10:02 +000066html: $(ALLBOOKS:%=%.html) wine-faq.html
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000067pdf: $(ALLBOOKS:%=%.pdf)
68ps: $(ALLBOOKS:%=%.ps)
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +000069txt: $(ALLBOOKS:%=%.txt)
Alexandre Julliard5b80ce32002-07-01 18:23:38 +000070
Dimitrie O. Paun255ecc52003-04-19 02:50:57 +000071.PHONY: everything doc html pdf ps dist
Alexandre Julliardd37eb361997-07-20 16:23:21 +000072
Dimitrie O. Paun6f7cbc02003-09-19 00:10:02 +000073.SUFFIXES: .sgml .html .pdf .ps .txt
Alexandre Julliardd37eb361997-07-20 16:23:21 +000074
Dimitrie O. Paun6f7cbc02003-09-19 00:10:02 +000075.sgml.html:
Dimitrie O. Pauncd2ed0c2003-10-14 20:21:05 +000076 $(DB2HTML) -u $<
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000077
78.sgml.pdf:
Dimitrie O. Paun6f7cbc02003-09-19 00:10:02 +000079 $(DB2PDF) $<
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000080
81.sgml.ps:
Dimitrie O. Paun6f7cbc02003-09-19 00:10:02 +000082 $(DB2PS) $<
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000083
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +000084.sgml.txt:
85 $(DB2TXT) $<
Alexandre Julliard641ee761997-08-04 16:34:36 +000086
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +000087wine-devel.pdf wine-devel.ps wine-devel.html wine-devel.txt: $(WINE_DEVEL_SRCS)
88wine-user.pdf wine-user.ps wine-user.html wine-user.txt: $(WINE_USER_SRCS)
89wine-faq.pdf wine-faq.ps wine-faq.html wine-faq.txt: $(WINE_FAQ_SRCS)
90winelib-user.pdf winelib-user.ps winelib-user.html winelib-user.txt: $(WINELIB_USER_SRCS)
Alexandre Julliardbf49a002003-09-18 20:51:32 +000091
Alexandre Julliardf5818d22002-02-14 19:47:29 +000092wine.man: wine.man.in
Francois Gouget1568fa32003-06-23 19:51:21 +000093 sed -e 's,@bindir\@,$(bindir),g' -e 's,@dlldir\@,$(dlldir),g' -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR)/wine.man.in >$@ || ($(RM) $@ && false)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000094
Alexandre Julliard20d444d2002-11-24 22:17:15 +000095# Rules for distribution tarballs of formatted docs
96
Alexandre Julliardbf49a002003-09-18 20:51:32 +000097dist: wine-doc-ps.tar.gz wine-doc-pdf.tar.gz wine-doc-html.tar.gz wine-doc-txt.tar.gz wine-faq.txt
Alexandre Julliard20d444d2002-11-24 22:17:15 +000098
99wine-doc-ps.tar.gz: $(ALLBOOKS:%=%.ps)
Francois Gouget1568fa32003-06-23 19:51:21 +0000100 tar cf - $(ALLBOOKS:%=%.ps) | gzip -9 > $@ || ($(RM) $@ && false)
Alexandre Julliard20d444d2002-11-24 22:17:15 +0000101
102wine-doc-pdf.tar.gz: $(ALLBOOKS:%=%.pdf)
Francois Gouget1568fa32003-06-23 19:51:21 +0000103 tar cf - $(ALLBOOKS:%=%.pdf) | gzip -9 > $@ || ($(RM) $@ && false)
Alexandre Julliard20d444d2002-11-24 22:17:15 +0000104
Dimitrie O. Paun6f7cbc02003-09-19 00:10:02 +0000105wine-doc-html.tar.gz: $(ALLBOOKS:%=%.html)
106 tar cf - $(ALLBOOKS:%=%.html) | gzip -9 > $@ || ($(RM) $@ && false)
Alexandre Julliard20d444d2002-11-24 22:17:15 +0000107
Dimitrie O. Paun6f7cbc02003-09-19 00:10:02 +0000108wine-doc-txt.tar.gz: $(ALLBOOKS:%=%.txt)
109 tar cf - $(ALLBOOKS:%=%.txt) | gzip -9 > $@ || ($(RM) $@ && false)
Alexandre Julliard20d444d2002-11-24 22:17:15 +0000110
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000111install:: $(MAN_TARGETS)
Jon Griffiths35345f22003-03-15 19:48:34 +0000112 $(MKINSTALLDIRS) $(mandir)/man$(prog_manext) $(mandir)/man$(conf_manext) $(mandir)/man$(api_manext)
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +0000113 $(INSTALL_DATA) wine.man $(mandir)/man$(prog_manext)/wine.$(prog_manext)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000114 $(INSTALL_DATA) $(SRCDIR)/wine.conf.man $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
Alexandre Julliard641ee761997-08-04 16:34:36 +0000115
Alexandre Julliard85ed45e1998-08-22 19:03:56 +0000116uninstall::
Alexandre Julliardab7fa6d1999-10-23 20:19:15 +0000117 $(RM) $(mandir)/man$(prog_manext)/wine.$(prog_manext)
118 $(RM) $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
Alexandre Julliard85ed45e1998-08-22 19:03:56 +0000119
Jon Griffiths35345f22003-03-15 19:48:34 +0000120install-api-man::
121 for i in $(SRCDIR)/man$(api_manext)/*; do $(INSTALL_DATA) $$i $(mandir)/man$(api_manext); done
122
Alexandre Julliardd37eb361997-07-20 16:23:21 +0000123clean::
Dimitrie O. Paun6f7cbc02003-09-19 00:10:02 +0000124 $(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*
Alexandre Julliardd37eb361997-07-20 16:23:21 +0000127
128### Dependencies: