blob: f80417e7b2103da305970b277179390e92c390f0 [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 = \
Mike Hearnb58687e2004-05-28 03:58:02 +000027 address-space.sgml \
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000028 architecture.sgml \
John R. Sheets1e8e5ba2000-08-08 01:24:00 +000029 consoles.sgml \
John R. Sheetsd9e064f2000-12-13 21:52:37 +000030 cvs-regression.sgml \
Chris Morgan5a6d2312004-03-20 19:23:56 +000031 ddraw.sgml \
John R. Sheets1e8e5ba2000-08-08 01:24:00 +000032 debugger.sgml \
33 debugging.sgml \
John R. Sheets1e8e5ba2000-08-08 01:24:00 +000034 documentation.sgml \
John R. Sheets1e8e5ba2000-08-08 01:24:00 +000035 i18n.sgml \
36 implementation.sgml \
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000037 multimedia.sgml \
John R. Sheetsd9e064f2000-12-13 21:52:37 +000038 ole.sgml \
John R. Sheets1e8e5ba2000-08-08 01:24:00 +000039 opengl.sgml \
John R. Sheets1e8e5ba2000-08-08 01:24:00 +000040 patches.sgml \
41 porting.sgml \
Dimitrie O. Paun0698b912003-09-22 21:30:45 +000042 testing.sgml
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000043
44WINELIB_USER_SRCS = \
John R. Sheets1828e592001-01-24 19:36:24 +000045 winelib-bindlls.sgml \
46 winelib-intro.sgml \
47 winelib-mfc.sgml \
John R. Sheets1828e592001-01-24 19:36:24 +000048 winelib-porting.sgml \
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000049 winelib-toolkit.sgml
50
Alexandre Julliard492e9632002-12-03 23:35:32 +000051WINE_FAQ_SRCS = \
52 faq.sgml
53
Alexandre Julliardf5818d22002-02-14 19:47:29 +000054MAN_TARGETS = wine.man
55
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000056ALLBOOKS = \
57 wine-devel \
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000058 wine-user \
59 winelib-user
60
Alexandre Julliard5b80ce32002-07-01 18:23:38 +000061all: $(MAN_TARGETS)
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000062
Alexandre Julliardd37eb361997-07-20 16:23:21 +000063@MAKE_RULES@
64
Dimitrie O. Paun66824e52003-09-16 01:03:54 +000065everything: $(MAN_TARGETS) doc
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +000066doc: html pdf ps txt
Dimitrie O. Paun6f7cbc02003-09-19 00:10:02 +000067html: $(ALLBOOKS:%=%.html) wine-faq.html
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000068pdf: $(ALLBOOKS:%=%.pdf)
69ps: $(ALLBOOKS:%=%.ps)
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +000070txt: $(ALLBOOKS:%=%.txt)
Alexandre Julliard5b80ce32002-07-01 18:23:38 +000071
Dimitrie O. Paun255ecc52003-04-19 02:50:57 +000072.PHONY: everything doc html pdf ps dist
Alexandre Julliardd37eb361997-07-20 16:23:21 +000073
Dimitrie O. Paun6f7cbc02003-09-19 00:10:02 +000074.SUFFIXES: .sgml .html .pdf .ps .txt
Alexandre Julliardd37eb361997-07-20 16:23:21 +000075
Dimitrie O. Paun6f7cbc02003-09-19 00:10:02 +000076.sgml.html:
Dimitrie O. Pauncd2ed0c2003-10-14 20:21:05 +000077 $(DB2HTML) -u $<
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000078
79.sgml.pdf:
Dimitrie O. Paun6f7cbc02003-09-19 00:10:02 +000080 $(DB2PDF) $<
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000081
82.sgml.ps:
Dimitrie O. Paun6f7cbc02003-09-19 00:10:02 +000083 $(DB2PS) $<
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000084
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +000085.sgml.txt:
86 $(DB2TXT) $<
Alexandre Julliard641ee761997-08-04 16:34:36 +000087
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +000088wine-devel.pdf wine-devel.ps wine-devel.html wine-devel.txt: $(WINE_DEVEL_SRCS)
89wine-user.pdf wine-user.ps wine-user.html wine-user.txt: $(WINE_USER_SRCS)
90wine-faq.pdf wine-faq.ps wine-faq.html wine-faq.txt: $(WINE_FAQ_SRCS)
91winelib-user.pdf winelib-user.ps winelib-user.html winelib-user.txt: $(WINELIB_USER_SRCS)
Alexandre Julliardbf49a002003-09-18 20:51:32 +000092
Alexandre Julliardf5818d22002-02-14 19:47:29 +000093wine.man: wine.man.in
Francois Gouget1568fa32003-06-23 19:51:21 +000094 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 +000095
Alexandre Julliard20d444d2002-11-24 22:17:15 +000096# Rules for distribution tarballs of formatted docs
97
Alexandre Julliardbf49a002003-09-18 20:51:32 +000098dist: 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 +000099
100wine-doc-ps.tar.gz: $(ALLBOOKS:%=%.ps)
Francois Gouget1568fa32003-06-23 19:51:21 +0000101 tar cf - $(ALLBOOKS:%=%.ps) | gzip -9 > $@ || ($(RM) $@ && false)
Alexandre Julliard20d444d2002-11-24 22:17:15 +0000102
103wine-doc-pdf.tar.gz: $(ALLBOOKS:%=%.pdf)
Francois Gouget1568fa32003-06-23 19:51:21 +0000104 tar cf - $(ALLBOOKS:%=%.pdf) | gzip -9 > $@ || ($(RM) $@ && false)
Alexandre Julliard20d444d2002-11-24 22:17:15 +0000105
Dimitrie O. Paun6f7cbc02003-09-19 00:10:02 +0000106wine-doc-html.tar.gz: $(ALLBOOKS:%=%.html)
107 tar cf - $(ALLBOOKS:%=%.html) | gzip -9 > $@ || ($(RM) $@ && false)
Alexandre Julliard20d444d2002-11-24 22:17:15 +0000108
Dimitrie O. Paun6f7cbc02003-09-19 00:10:02 +0000109wine-doc-txt.tar.gz: $(ALLBOOKS:%=%.txt)
110 tar cf - $(ALLBOOKS:%=%.txt) | gzip -9 > $@ || ($(RM) $@ && false)
Alexandre Julliard20d444d2002-11-24 22:17:15 +0000111
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000112install:: $(MAN_TARGETS)
Jon Griffiths35345f22003-03-15 19:48:34 +0000113 $(MKINSTALLDIRS) $(mandir)/man$(prog_manext) $(mandir)/man$(conf_manext) $(mandir)/man$(api_manext)
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +0000114 $(INSTALL_DATA) wine.man $(mandir)/man$(prog_manext)/wine.$(prog_manext)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000115 $(INSTALL_DATA) $(SRCDIR)/wine.conf.man $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
Alexandre Julliard641ee761997-08-04 16:34:36 +0000116
Alexandre Julliard85ed45e1998-08-22 19:03:56 +0000117uninstall::
Alexandre Julliardab7fa6d1999-10-23 20:19:15 +0000118 $(RM) $(mandir)/man$(prog_manext)/wine.$(prog_manext)
119 $(RM) $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
Alexandre Julliard85ed45e1998-08-22 19:03:56 +0000120
Jon Griffiths35345f22003-03-15 19:48:34 +0000121install-api-man::
122 for i in $(SRCDIR)/man$(api_manext)/*; do $(INSTALL_DATA) $$i $(mandir)/man$(api_manext); done
123
Alexandre Julliardd37eb361997-07-20 16:23:21 +0000124clean::
Dimitrie O. Paun6f7cbc02003-09-19 00:10:02 +0000125 $(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*
Alexandre Julliardd37eb361997-07-20 16:23:21 +0000128
129### Dependencies: