25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.am 1.9 KiB

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