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

Last change on this file since 340 was 340, checked in by Sam Hocevar, 16 years ago
  • examples/cacamoir.c: + Renamed cacacirc to cacamoir.
  • libcaca.spec debian/ doc/: + Added cacamoir to the distributed files.
File size: 1.5 KB
RevLine 
[268]1EXTRA_DIST = doxygen.cfg.in footer.html header.html $(man_MANS)
[207]2
[323]3man_MANS = caca-config.1 cacademo.1 cacaview.1
[207]4
[270]5if DOXYGEN
[296]6htmldoc_DATA = html/doxygen.css
[270]7htmldocdir = $(datadir)/doc/libcaca-dev/html
8if LATEX
[275]9psdoc_DATA = latex/libcaca.ps
[270]10psdocdir = $(datadir)/doc/libcaca-dev/ps
11endif
12endif
[207]13
[270]14html/doxygen.css html/doxygen.png: stamp-doxygen
[275]15latex/libcaca.ps: stamp-latex
[270]16
[207]17stamp-doxygen:
18if DOXYGEN
19        doxygen doxygen.cfg
20        touch stamp-doxygen
21endif
22
23stamp-latex: stamp-doxygen
24if DOXYGEN
25if LATEX
[313]26        rm -f latex/libcaca.tex latex/libcaca.ps
27        mv latex/refman.tex latex/libcaca.tex
28        sed 's/setlength{/renewcommand{/' latex/libcaca.tex > latex/refman.tex
[207]29        cd latex && $(MAKE) $(AM_CFLAGS) ps
[275]30        mv latex/refman.ps latex/libcaca.ps
[207]31        touch stamp-latex
32endif
33endif
34
35clean: clean-local
36clean-local:
[268]37        -rm -Rf html latex man
[207]38        -rm -f stamp-latex stamp-doxygen
39
[270]40install-data-local:
41if DOXYGEN
42        $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/libcaca-dev/html
[297]43        cp `find html -name '*.html' -o -name '*.gif' -o -name '*.png'` \
44          $(DESTDIR)$(datadir)/doc/libcaca-dev/html
[270]45        $(mkinstalldirs) $(DESTDIR)$(mandir)/man3
46        cp man/man3/*.3caca $(DESTDIR)$(mandir)/man3
[310]47        $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
[340]48        rm -f $(DESTDIR)$(mandir)/man1/cacaball.1
49        ln -s cacademo.1 $(DESTDIR)$(mandir)/man1/cacaball.1
[310]50        rm -f $(DESTDIR)$(mandir)/man1/cacafire.1
51        ln -s cacademo.1 $(DESTDIR)$(mandir)/man1/cacafire.1
[340]52        rm -f $(DESTDIR)$(mandir)/man1/cacamoir.1
53        ln -s cacademo.1 $(DESTDIR)$(mandir)/man1/cacamoir.1
54        rm -f $(DESTDIR)$(mandir)/man1/cacaplas.1
55        ln -s cacademo.1 $(DESTDIR)$(mandir)/man1/cacaplas.1
[270]56endif
57
Note: See TracBrowser for help on using the repository browser.