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.
 
 
 
 
 
 

58 lines
1.5 KiB

  1. # $Id$
  2. EXTRA_DIST = doxygen.cfg.in footer.html header.html $(man_MANS)
  3. man_MANS = caca-config.1 cacafire.1 cacaview.1
  4. if BUILD_DOCUMENTATION
  5. htmldoc_DATA = html/doxygen.css
  6. htmldocdir = $(datadir)/doc/libcaca-dev/html
  7. if USE_LATEX
  8. pdfdoc_DATA = latex/libcaca.pdf
  9. pdfdocdir = $(datadir)/doc/libcaca-dev/pdf
  10. endif
  11. endif
  12. html/doxygen.css html/doxygen.png: stamp-doxygen
  13. latex/libcaca.pdf: stamp-latex
  14. stamp-doxygen:
  15. if BUILD_DOCUMENTATION
  16. doxygen doxygen.cfg
  17. touch stamp-doxygen
  18. endif
  19. stamp-latex: stamp-doxygen
  20. if BUILD_DOCUMENTATION
  21. if USE_LATEX
  22. rm -f latex/libcaca.tex latex/libcaca.pdf
  23. mv latex/refman.tex latex/libcaca.tex
  24. sed 's/setlength{/renewcommand{/' latex/libcaca.tex > latex/refman.tex
  25. cd latex && $(MAKE) $(AM_CFLAGS) refman.pdf
  26. mv latex/refman.pdf latex/libcaca.pdf
  27. touch stamp-latex
  28. endif
  29. endif
  30. clean: clean-local
  31. clean-local:
  32. -rm -Rf html latex man
  33. -rm -f stamp-latex stamp-doxygen
  34. install-data-local:
  35. if BUILD_DOCUMENTATION
  36. $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/libcaca-dev/html
  37. cp `find html -name '*.html' -o -name '*.gif' -o -name '*.png'` \
  38. $(DESTDIR)$(datadir)/doc/libcaca-dev/html
  39. $(mkinstalldirs) $(DESTDIR)$(mandir)/man3
  40. cp `find man -name '*.3caca'` $(DESTDIR)$(mandir)/man3
  41. $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
  42. rm -f $(DESTDIR)$(mandir)/man1/cacaball.1
  43. ln -s cacafire.1 $(DESTDIR)$(mandir)/man1/cacaball.1
  44. rm -f $(DESTDIR)$(mandir)/man1/cacamoir.1
  45. ln -s cacafire.1 $(DESTDIR)$(mandir)/man1/cacamoir.1
  46. rm -f $(DESTDIR)$(mandir)/man1/cacaplas.1
  47. ln -s cacafire.1 $(DESTDIR)$(mandir)/man1/cacaplas.1
  48. endif