c326f2339b1abe722aab30e33925163b2c95cf59
[cl-gtk2.git] / doc / Makefile
1 all: doc.html tutorial.html gobject/index.html gtk/index.html
2
3 doc.html: doc.xml
4         xsltproc -o $@ /usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl $<
5
6 tutorial.html: tutorial.xml
7         xsltproc -o $@ /usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl $<
8
9 index.html: doc.xml
10         xsltproc /usr/share/sgml/docbook/xsl-stylesheets/html/chunk.xsl $<
11
12 gobject/style.css: style.css
13         ([ -x gobject ] || mkdir gobject) && cp $< $@
14
15 gobject/index.html: gobject.texi gobject.ref.texi gobject/style.css
16         makeinfo --html --css-ref=style.css $<
17         sbcl --noinform --no-sysinit --no-userinit --disable-debugger --load colorize-lisp-examples.lisp $@
18         ./fix-tex-references.sh gobject
19
20 gtk/style.css: style.css
21         ([ -x gtk ] || mkdir gtk) && cp $< $@
22
23 gtk/index.html: gtk.texi gtk.ref.texi gdk.ref.texi gobject.ref.texi glib.ref.texi gtk/style.css
24         makeinfo --html --css-ref=style.css $<
25         sbcl --noinform --no-sysinit --no-userinit --disable-debugger --load colorize-lisp-examples.lisp $@
26         ./fix-tex-references.sh gtk
27
28 #gtk.ref.texi gdk.ref.texi gobject.ref.texi: introspection.lisp
29 #       sbcl --noinfo --no-sysinit --no-user-init --disable-debugger --eval "(asdf:oos 'asdf:load-op :cl-gtk2-gtk)" --load "introspection.lisp" --eval '(gtk-doc-introspection:generate-texinfo-for-packages *default-pathname-defaults* (list :gdk :gobject :gtk))'
30
31 gobject.pdf: gobject.texi
32         pdftex $<
33         pdftex $<
34
35 gtk.pdf: gtk.texi
36         pdftex $<
37         pdftex $<