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

Last change on this file since 341 was 341, checked in by Sam Hocevar, 16 years ago
  • build-win32: + Win32 cross-compilation script.
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: foo$
2
3EXTRA_DIST = doxygen.cfg.in footer.html header.html $(man_MANS)
4
5man_MANS = caca-config.1 cacademo.1 cacaview.1
6
7if DOXYGEN
8htmldoc_DATA = html/doxygen.css
9htmldocdir = $(datadir)/doc/libcaca-dev/html
10if 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 DOXYGEN
21        doxygen doxygen.cfg
22        touch stamp-doxygen
23endif
24
25stamp-latex: stamp-doxygen
26if DOXYGEN
27if 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 DOXYGEN
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 man/man3/*.3caca $(DESTDIR)$(mandir)/man3
49        $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
50        rm -f $(DESTDIR)$(mandir)/man1/cacaball.1
51        ln -s cacademo.1 $(DESTDIR)$(mandir)/man1/cacaball.1
52        rm -f $(DESTDIR)$(mandir)/man1/cacafire.1
53        ln -s cacademo.1 $(DESTDIR)$(mandir)/man1/cacafire.1
54        rm -f $(DESTDIR)$(mandir)/man1/cacamoir.1
55        ln -s cacademo.1 $(DESTDIR)$(mandir)/man1/cacamoir.1
56        rm -f $(DESTDIR)$(mandir)/man1/cacaplas.1
57        ln -s cacademo.1 $(DESTDIR)$(mandir)/man1/cacaplas.1
58endif
59
Note: See TracBrowser for help on using the repository browser.