Actually build the tutorial if enabled
Previously we required an explicit "make html" in this subdirectory for no reason. Just build it if make is invoked at the toplevel and we have docbook.
This commit is contained in:
@ -37,7 +37,7 @@ EXTRA_DIST += \
|
|||||||
images/tictactoe.png
|
images/tictactoe.png
|
||||||
|
|
||||||
if HAVE_DOCBOOK
|
if HAVE_DOCBOOK
|
||||||
html:
|
html: gtk-tut.sgml
|
||||||
if test -w $(srcdir); then \
|
if test -w $(srcdir); then \
|
||||||
(cd $(srcdir); \
|
(cd $(srcdir); \
|
||||||
db2html gtk-tut.sgml; \
|
db2html gtk-tut.sgml; \
|
||||||
@ -47,11 +47,13 @@ html:
|
|||||||
cp images/*.png html/images); \
|
cp images/*.png html/images); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pdf:
|
pdf: gtk-tut.sgml
|
||||||
if test -w $(srcdir); then \
|
if test -w $(srcdir); then \
|
||||||
(cd $(srcdir); db2pdf gtk-tut.sgml); \
|
(cd $(srcdir); db2pdf gtk-tut.sgml); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
all-local: html
|
||||||
|
|
||||||
dist-hook: html
|
dist-hook: html
|
||||||
cp -Rp $(srcdir)/html $(distdir)
|
cp -Rp $(srcdir)/html $(distdir)
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user