source: libcaca/trunk/doc/Makefile.am @ 823

Last change on this file since 823 was 823, checked in by Sam Hocevar, 14 years ago
  • Added AUTHORS, THANKS, NEWS and TODO to the Doxygen documentation. Moved the main documentation page from caca.h to a separate file.
  • Property svn:keywords set to Id
File size: 1.5 KB
RevLine 
[342]1# $Id: Makefile.am 823 2006-04-21 16:27:43Z sam $
[341]2
[823]3EXTRA_DIST = doxygen.cfg.in footer.html header.html libcaca.dox $(man_MANS)
[207]4
[526]5man_MANS = caca-config.1 cacafire.1 cacaview.1
[207]6
[346]7if BUILD_DOCUMENTATION
[296]8htmldoc_DATA = html/doxygen.css
[270]9htmldocdir = $(datadir)/doc/libcaca-dev/html
[346]10if USE_LATEX
[772]11pdfdoc_DATA = latex/libcaca.pdf
12pdfdocdir = $(datadir)/doc/libcaca-dev/pdf
[270]13endif
14endif
[207]15
[270]16html/doxygen.css html/doxygen.png: stamp-doxygen
[772]17latex/libcaca.pdf: stamp-latex
[270]18
[207]19stamp-doxygen:
[346]20if BUILD_DOCUMENTATION
[207]21        doxygen doxygen.cfg
22        touch stamp-doxygen
23endif
24
25stamp-latex: stamp-doxygen
[346]26if BUILD_DOCUMENTATION
27if USE_LATEX
[772]28        rm -f latex/libcaca.tex latex/libcaca.pdf
[313]29        mv latex/refman.tex latex/libcaca.tex
30        sed 's/setlength{/renewcommand{/' latex/libcaca.tex > latex/refman.tex
[772]31        cd latex && $(MAKE) $(AM_CFLAGS) refman.pdf
32        mv latex/refman.pdf latex/libcaca.pdf
[207]33        touch stamp-latex
34endif
35endif
36
37clean: clean-local
38clean-local:
[268]39        -rm -Rf html latex man
[207]40        -rm -f stamp-latex stamp-doxygen
41
[270]42install-data-local:
[346]43if BUILD_DOCUMENTATION
[270]44        $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/libcaca-dev/html
[297]45        cp `find html -name '*.html' -o -name '*.gif' -o -name '*.png'` \
46          $(DESTDIR)$(datadir)/doc/libcaca-dev/html
[270]47        $(mkinstalldirs) $(DESTDIR)$(mandir)/man3
[372]48        cp `find man -name '*.3caca'` $(DESTDIR)$(mandir)/man3
[310]49        $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
[340]50        rm -f $(DESTDIR)$(mandir)/man1/cacaball.1
[526]51        ln -s cacafire.1 $(DESTDIR)$(mandir)/man1/cacaball.1
[340]52        rm -f $(DESTDIR)$(mandir)/man1/cacamoir.1
[526]53        ln -s cacafire.1 $(DESTDIR)$(mandir)/man1/cacamoir.1
[340]54        rm -f $(DESTDIR)$(mandir)/man1/cacaplas.1
[526]55        ln -s cacafire.1 $(DESTDIR)$(mandir)/man1/cacaplas.1
[270]56endif
57
Note: See TracBrowser for help on using the repository browser.