Makefile.am 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. if ENABLE_DOXYGEN
  2. html_parent_dir = .
  3. HTML_HEADER =
  4. HTML_FOOTER =
  5. all: doxygen-trac
  6. .PHONY: doxygen-trac
  7. doxygen-trac: clean core-doc-trac gtk-gui-doc-trac
  8. %-doc-trac : %-doc
  9. ln -sf ${html_parent_dir}/$< ${html_parent_dir}/$</html
  10. doc: clean core-doc gtk-gui-doc
  11. %-doc : %-doc.cfg
  12. rm -rf $@/ refman.pdf
  13. $(DOXYGEN) $<
  14. # $(MAKE) -C latex/
  15. # mv latex/refman.pdf ./refman.pdf
  16. clean-local:
  17. echo "clean-local: " && pwd
  18. rm -rf latex/
  19. rm -rf ${html_parent_dir}/*-doc/
  20. rm -f *~
  21. rm -f doxygen.log
  22. rm -f doxygen.cfg
  23. maintainer-clean-local: clean-local
  24. echo "maintainer-clean-local: " && pwd
  25. rm -rf html refman.pdf
  26. ## We borrow guile's convention and use @-...-@ as the substitution
  27. ## brackets here, instead of the usual @...@. This prevents autoconf
  28. ## from substituting the values directly into the left-hand sides of
  29. ## the sed substitutions.
  30. %.cfg : %.cfg.in
  31. rm -f $@.tmp
  32. sed < $< > $@.tmp \
  33. -e 's:@-top_srcdir-@:${top_srcdir}:g'
  34. sed < $@.tmp > $@.tmp2 \
  35. -e 's:@-html_dir-@:${html_parent_dir}/$*:g'
  36. rm $@.tmp
  37. sed < $@.tmp2 > $@.tmp3 \
  38. -e 's:@-html_header-@:${HTML_HEADER}:g'
  39. rm $@.tmp2
  40. sed < $@.tmp3 > $@.tmp4 \
  41. -e 's:@-html_footer-@:${HTML_FOOTER}:g'
  42. rm $@.tmp3
  43. mv $@.tmp4 $@
  44. endif # ENABLE_DOXYGEN