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

Last change on this file since 372 was 372, checked in by Sam Hocevar, 16 years ago
  • doc/Makefile.am: + Really fixed the manpage generation.
  • Property svn:keywords set to Id
File size: 1.6 KB
RevLine 
[342]1# $Id: Makefile.am 372 2004-11-04 20:36:49Z sam $
[341]2
[268]3EXTRA_DIST = doxygen.cfg.in footer.html header.html $(man_MANS)
[207]4
[323]5man_MANS = caca-config.1 cacademo.1 cacaview.1
[207]6
[346]7if BUILD_DOCUMENTATION
[296]8htmldoc_DATA = html/doxygen.css
[270]9htmldocdir = $(datadir)/doc/libcaca-dev/html
[346]10if USE_LATEX
[275]11psdoc_DATA = latex/libcaca.ps
[270]12psdocdir = $(datadir)/doc/libcaca-dev/ps
13endif
14endif
[207]15
[270]16html/doxygen.css html/doxygen.png: stamp-doxygen
[275]17latex/libcaca.ps: stamp-latex
[270]18
[207]19stamp-doxygen:
[346]20if BUILD_DOCUMENTATION
[207]21        doxygen doxygen.cfg
22        touch stamp-doxygen
23endif
24
25stamp-latex: stamp-doxygen
[346]26if BUILD_DOCUMENTATION
27if USE_LATEX
[313]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
[207]31        cd latex && $(MAKE) $(AM_CFLAGS) ps
[275]32        mv latex/refman.ps latex/libcaca.ps
[207]33        touch stamp-latex
34endif
35endif
36
37clean: clean-local
38clean-local:
[268]39        -rm -Rf html latex man
[207]40        -rm -f stamp-latex stamp-doxygen
41
[270]42install-data-local:
[346]43if BUILD_DOCUMENTATION
[270]44        $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/libcaca-dev/html
[297]45        cp `find html -name '*.html' -o -name '*.gif' -o -name '*.png'` \
46          $(DESTDIR)$(datadir)/doc/libcaca-dev/html
[270]47        $(mkinstalldirs) $(DESTDIR)$(mandir)/man3
[372]48        cp `find man -name '*.3caca'` $(DESTDIR)$(mandir)/man3
[310]49        $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
[340]50        rm -f $(DESTDIR)$(mandir)/man1/cacaball.1
51        ln -s cacademo.1 $(DESTDIR)$(mandir)/man1/cacaball.1
[310]52        rm -f $(DESTDIR)$(mandir)/man1/cacafire.1
53        ln -s cacademo.1 $(DESTDIR)$(mandir)/man1/cacafire.1
[340]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
[270]58endif
59
Note: See TracBrowser for help on using the repository browser.