diff options
Diffstat (limited to 'doc/hackersguide')
-rw-r--r-- | doc/hackersguide/Makefile.am | 48 |
1 files changed, 44 insertions, 4 deletions
diff --git a/doc/hackersguide/Makefile.am b/doc/hackersguide/Makefile.am index 4b5985599..025f4a1ec 100644 --- a/doc/hackersguide/Makefile.am +++ b/doc/hackersguide/Makefile.am @@ -21,10 +21,50 @@ EXTRA_DIST = README $(hackersguide_docbook) $(hackersguide_svg) \ DISTCLEANFILES = $(hackersguide_DATA) +SUFFIXES = .png .fig + +docs: $(hackersguide_DATA) + +clean-docs: + rm -f $(hackersguide_DATA) + +dist-hook: + @if test x"$(distcheck_lax)" = x ; then \ + $(MAKE) fail_if_missing=yes docs ; \ + else \ + $(MAKE) docs ; \ + fi + +distclean-local: clean-docs + +if HAVE_XMLTO +hackersguide.html: $(hackersguide_docbook) + xmlto html-nochunks $^ +else hackersguide.html: $(hackersguide_docbook) - xmlto html-nochunks $(srcdir)/hackersguide.docbook + if test x"$(fail_if_missing)" = x"yes"; then \ + echo "Please install xmlto."; \ + exit 1; \ + fi + if test x"$(fail_if_missing)" != x"yes"; then \ + touch $@; \ + sleep 1; \ + touch $^; \ + fi +endif +if HAVE_RSVG .svg.png: - rsvg -f png $< $@ - -SUFFIXES = .png .fig + rsvg -f png $^ $@ +else +.svg.png: + if test x"$(fail_if_missing)" = x"yes"; then \ + echo "Please install rsvg."; \ + exit 1; \ + fi + if test x"$(fail_if_missing)" != x"yes"; then \ + touch $@; \ + sleep 1; \ + touch $^; \ + fi +endif |