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.
 
 
 
 
 
 

60 line
1.6 KiB

  1. # $Id$
  2. EXTRA_DIST = doxygen.cfg.in footer.html header.html $(man_MANS)
  3. man_MANS = caca-config.1 cacademo.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. psdoc_DATA = latex/libcaca.ps
  9. psdocdir = $(datadir)/doc/libcaca-dev/ps
  10. endif
  11. endif
  12. html/doxygen.css html/doxygen.png: stamp-doxygen
  13. latex/libcaca.ps: 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.ps
  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) ps
  26. mv latex/refman.ps latex/libcaca.ps
  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 cacademo.1 $(DESTDIR)$(mandir)/man1/cacaball.1
  44. rm -f $(DESTDIR)$(mandir)/man1/cacafire.1
  45. ln -s cacademo.1 $(DESTDIR)$(mandir)/man1/cacafire.1
  46. rm -f $(DESTDIR)$(mandir)/man1/cacamoir.1
  47. ln -s cacademo.1 $(DESTDIR)$(mandir)/man1/cacamoir.1
  48. rm -f $(DESTDIR)$(mandir)/man1/cacaplas.1
  49. ln -s cacademo.1 $(DESTDIR)$(mandir)/man1/cacaplas.1
  50. endif