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

Last change on this file since 296 was 296, checked in by Sam Hocevar, 16 years ago
  • doc/Makefile.am: + Do not install doxygen.png directly, because it can be doxygen.gif on

old installations.

File size: 1.0 KB
Line 
1EXTRA_DIST = doxygen.cfg.in footer.html header.html $(man_MANS)
2
3man_MANS = caca-config.1 cacademo.1 caca-spritedit.1 cacaview.1
4
5if DOXYGEN
6htmldoc_DATA = html/doxygen.css
7htmldocdir = $(datadir)/doc/libcaca-dev/html
8if LATEX
9psdoc_DATA = latex/libcaca.ps
10psdocdir = $(datadir)/doc/libcaca-dev/ps
11endif
12endif
13
14html/doxygen.css html/doxygen.png: stamp-doxygen
15latex/libcaca.ps: stamp-latex
16
17stamp-doxygen:
18if DOXYGEN
19        doxygen doxygen.cfg
20        touch stamp-doxygen
21endif
22
23stamp-latex: stamp-doxygen
24if DOXYGEN
25if LATEX
26        rm -f latex/libcaca.ps
27        cd latex && $(MAKE) $(AM_CFLAGS) ps
28        mv latex/refman.ps latex/libcaca.ps
29        touch stamp-latex
30endif
31endif
32
33clean: clean-local
34clean-local:
35        -rm -Rf html latex man
36        -rm -f stamp-latex stamp-doxygen
37
38install-data-local:
39if DOXYGEN
40        $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/libcaca-dev/html
41        cp html/*.html $(DESTDIR)$(datadir)/doc/libcaca-dev/html
42        cp html/*.gif html/*.png $(DESTDIR)$(datadir)/doc/libcaca-dev/html
43        $(mkinstalldirs) $(DESTDIR)$(mandir)/man3
44        cp man/man3/*.3caca $(DESTDIR)$(mandir)/man3
45endif
46
Note: See TracBrowser for help on using the repository browser.