You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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