doc/Makefile: do not run makeinfo when only style.css changes
[cl-gtk2.git] / doc / Makefile
1 all: doc.html tutorial.html gobject/index.html gtk/index.html gobject/style.css gtk/style.css
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
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 gdk.enums.texi \
24 gtk.flags.texi gtk.objects.texi gdk.flags.texi gdk.structs.texi gtk.interfaces.texi gtk.widgets.texi gdk.objects.texi \
25  gtk.enums.texi gtk.main_loop.texi gtk.structs.texi
26         makeinfo --html --css-ref=style.css $<
27         #sbcl --noinform --no-sysinit --no-userinit --disable-debugger --load colorize-lisp-examples.lisp $@
28         ./fix-tex-references.sh gtk
29
30 #gtk.ref.texi gdk.ref.texi gobject.ref.texi: introspection.lisp
31 #       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))'
32
33 gobject.pdf: gobject.texi
34         pdftex $<
35         pdftex $<
36
37 gtk.pdf: gtk.texi
38         pdftex $<
39         pdftex $<