選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

69 行
2.0 KiB

  1. include $(top_srcdir)/build/autotools/common.am
  2. SUBDIRS =
  3. SUBDIRS += tutorial
  4. SUBDIRS += samples
  5. EXTRA_DIST += doxygen.cfg.in doxygen.css footer.html header.html \
  6. $(man_MANS) $(doxygen_DOX)
  7. CLEANFILES += doxygen.log stamp-latex stamp-doxygen
  8. doxygen_DOX = lolengine.dox
  9. if BUILD_DOCUMENTATION
  10. man_MANS = lolengine.1
  11. endif
  12. if BUILD_DOCUMENTATION
  13. htmldoc_DATA = html/doxygen.css
  14. htmldocdir = $(datadir)/doc/lolengine-dev/html
  15. if LOL_USE_LATEX
  16. pdfdoc_DATA = latex/lolengine.pdf
  17. pdfdocdir = $(datadir)/doc/lolengine-dev/pdf
  18. endif
  19. endif
  20. html/doxygen.css html/doxygen.png: stamp-doxygen
  21. latex/lolengine.pdf: stamp-latex
  22. stamp-doxygen: $(doxygen_DOX)
  23. if BUILD_DOCUMENTATION
  24. doxygen doxygen.cfg 2>&1 | tee doxygen.log
  25. touch stamp-doxygen
  26. endif
  27. stamp-latex: stamp-doxygen
  28. if BUILD_DOCUMENTATION
  29. if LOL_USE_LATEX
  30. rm -f latex/lolengine.tex latex/lolengine.pdf
  31. $(SED) -i -e 's/setlength{/renewcommand{/' latex/refman.tex
  32. $(SED) -i -e 's/.*usepackage.*times.*//' latex/refman.tex
  33. $(SED) -i -e 's/latex refman/latex -file-line-error -halt-on-error refman/' latex/Makefile
  34. cd latex && $(MAKE) $(AM_CFLAGS) refman.pdf || (cat refman.log; exit 1)
  35. mv latex/refman.pdf latex/lolengine.pdf
  36. touch stamp-latex
  37. endif
  38. endif
  39. clean-local:
  40. -rm -Rf html latex man
  41. install-data-local:
  42. if BUILD_DOCUMENTATION
  43. mkdir -p $(DESTDIR)$(datadir)/doc
  44. $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/lolengine-dev/html
  45. cp `find html -name '*.html' -o -name '*.gif' -o -name '*.png'` \
  46. $(DESTDIR)$(datadir)/doc/lolengine-dev/html
  47. $(mkinstalldirs) $(DESTDIR)$(mandir)/man3
  48. for man in $$(find man -name '*.3lol'); do \
  49. sed -e 's/man3lol/man3/g' -e "s/fC'\([a-zA-Z0-9]*\)'/fC\"\1\"/g" \
  50. $$man >$(DESTDIR)$(mandir)/man3/$${man##*/}; \
  51. done
  52. $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
  53. endif
  54. uninstall-local:
  55. rmdir $(DESTDIR)$(datadir)/doc/lolengine-dev/html 2>/dev/null || true
  56. rmdir $(DESTDIR)$(datadir)/doc/lolengine-dev 2>/dev/null || true
  57. rmdir $(DESTDIR)$(datadir)/doc 2>/dev/null || true