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

Last change on this file since 732 was 526, checked in by Sam Hocevar, 15 years ago
  • Removed cacademo from examples, manpages and distributions. It's useless.
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Makefile.am 526 2006-03-06 08:26:09Z sam $
2
3EXTRA_DIST = doxygen.cfg.in footer.html header.html $(man_MANS)
4
5man_MANS = caca-config.1 cacafire.1 cacaview.1
6
7if BUILD_DOCUMENTATION
8htmldoc_DATA = html/doxygen.css
9htmldocdir = $(datadir)/doc/libcaca-dev/html
10if USE_LATEX
11psdoc_DATA = latex/libcaca.ps
12psdocdir = $(datadir)/doc/libcaca-dev/ps
13endif
14endif
15
16html/doxygen.css html/doxygen.png: stamp-doxygen
17latex/libcaca.ps: stamp-latex
18
19stamp-doxygen:
20if BUILD_DOCUMENTATION
21        doxygen doxygen.cfg
22        touch stamp-doxygen
23endif
24
25stamp-latex: stamp-doxygen
26if BUILD_DOCUMENTATION
27if USE_LATEX
28        rm -f latex/libcaca.tex latex/libcaca.ps
29        mv latex/refman.tex latex/libcaca.tex
30        sed 's/setlength{/renewcommand{/' latex/libcaca.tex > latex/refman.tex
31        cd latex && $(MAKE) $(AM_CFLAGS) ps
32        mv latex/refman.ps latex/libcaca.ps
33        touch stamp-latex
34endif
35endif
36
37clean: clean-local
38clean-local:
39        -rm -Rf html latex man
40        -rm -f stamp-latex stamp-doxygen
41
42install-data-local:
43if BUILD_DOCUMENTATION
44        $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/libcaca-dev/html
45        cp `find html -name '*.html' -o -name '*.gif' -o -name '*.png'` \
46          $(DESTDIR)$(datadir)/doc/libcaca-dev/html
47        $(mkinstalldirs) $(DESTDIR)$(mandir)/man3
48        cp `find man -name '*.3caca'` $(DESTDIR)$(mandir)/man3
49        $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
50        rm -f $(DESTDIR)$(mandir)/man1/cacaball.1
51        ln -s cacafire.1 $(DESTDIR)$(mandir)/man1/cacaball.1
52        rm -f $(DESTDIR)$(mandir)/man1/cacamoir.1
53        ln -s cacafire.1 $(DESTDIR)$(mandir)/man1/cacamoir.1
54        rm -f $(DESTDIR)$(mandir)/man1/cacaplas.1
55        ln -s cacafire.1 $(DESTDIR)$(mandir)/man1/cacaplas.1
56endif
57
Note: See TracBrowser for help on using the repository browser.