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

Last change on this file since 1988 was 1986, checked in by Sam Hocevar, 12 years ago
  • Updated doxygen file format.
  • Add an empty doxygen.css file.
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Makefile.am 1986 2007-11-16 19:49:23Z sam $
2
3EXTRA_DIST = doxygen.cfg.in doxygen.css footer.html header.html \
4             $(man_MANS) $(doxygen_DOX)
5
6doxygen_DOX = libcaca.dox user.dox migrating.dox tutorial.dox canvas.dox font.dox style.dox
7man_MANS = caca-config.1 cacafire.1 cacaview.1 cacaserver.1 img2txt.1 cacaplay.1
8
9if BUILD_DOCUMENTATION
10htmldoc_DATA = html/doxygen.css
11htmldocdir = $(datadir)/doc/libcucul-dev/html
12if USE_LATEX
13pdfdoc_DATA = latex/libcaca.pdf
14pdfdocdir = $(datadir)/doc/libcucul-dev/pdf
15endif
16endif
17
18html/doxygen.css html/doxygen.png: stamp-doxygen
19latex/libcaca.pdf: stamp-latex
20
21stamp-doxygen: $(doxygen_DOX)
22if BUILD_DOCUMENTATION
23        doxygen doxygen.cfg
24        touch stamp-doxygen
25endif
26
27stamp-latex: stamp-doxygen
28if BUILD_DOCUMENTATION
29if USE_LATEX
30        rm -f latex/libcaca.tex latex/libcaca.pdf
31        mv latex/refman.tex latex/libcaca.tex
32        sed 's/setlength{/renewcommand{/' latex/libcaca.tex > latex/refman.tex
33        cd latex && $(MAKE) $(AM_CFLAGS) refman.pdf || (cat refman.log; exit 1)
34        mv latex/refman.pdf latex/libcaca.pdf
35        touch stamp-latex
36endif
37endif
38
39clean: clean-local
40clean-local:
41        -rm -Rf html latex man
42        -rm -f stamp-latex stamp-doxygen
43
44install-data-local:
45if BUILD_DOCUMENTATION
46        $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/libcucul-dev/html
47        cp `find html -name '*.html' -o -name '*.gif' -o -name '*.png'` \
48          $(DESTDIR)$(datadir)/doc/libcucul-dev/html
49        $(mkinstalldirs) $(DESTDIR)$(mandir)/man3
50        for man in $$(find man -name '*.3caca'); do \
51          sed -e 's/man3caca/man3/g' -e "s/fC'\([a-zA-Z0-9]*\)'/fC\"\1\"/g" \
52            $$man >$(DESTDIR)$(mandir)/man3/$${man##*/}; \
53        done
54        $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
55        rm -f $(DESTDIR)$(mandir)/man1/cacademo.1
56        ln -s cacafire.1 $(DESTDIR)$(mandir)/man1/cacademo.1
57endif
58
Note: See TracBrowser for help on using the repository browser.