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

Last change on this file since 850 was 850, checked in by Sam Hocevar, 15 years ago
  • Updated Debian build rules.
  • Property svn:keywords set to Id
File size: 1.6 KB
RevLine 
[342]1# $Id: Makefile.am 850 2006-04-22 21:31:42Z sam $
[341]2
[847]3EXTRA_DIST = doxygen.cfg.in footer.html header.html $(man_MANS) $(doxygen_DOX)
[207]4
[847]5doxygen_DOX = libcaca.dox user.dox migrating.dox tutorial.dox style.dox
[526]6man_MANS = caca-config.1 cacafire.1 cacaview.1
[207]7
[346]8if BUILD_DOCUMENTATION
[296]9htmldoc_DATA = html/doxygen.css
[850]10htmldocdir = $(datadir)/doc/libcucul-dev/html
[346]11if USE_LATEX
[772]12pdfdoc_DATA = latex/libcaca.pdf
[850]13pdfdocdir = $(datadir)/doc/libcucul-dev/pdf
[270]14endif
15endif
[207]16
[270]17html/doxygen.css html/doxygen.png: stamp-doxygen
[772]18latex/libcaca.pdf: stamp-latex
[270]19
[847]20stamp-doxygen: $(doxygen_DOX)
[346]21if BUILD_DOCUMENTATION
[207]22        doxygen doxygen.cfg
23        touch stamp-doxygen
24endif
25
26stamp-latex: stamp-doxygen
[346]27if BUILD_DOCUMENTATION
28if USE_LATEX
[772]29        rm -f latex/libcaca.tex latex/libcaca.pdf
[313]30        mv latex/refman.tex latex/libcaca.tex
31        sed 's/setlength{/renewcommand{/' latex/libcaca.tex > latex/refman.tex
[772]32        cd latex && $(MAKE) $(AM_CFLAGS) refman.pdf
33        mv latex/refman.pdf latex/libcaca.pdf
[207]34        touch stamp-latex
35endif
36endif
37
38clean: clean-local
39clean-local:
[268]40        -rm -Rf html latex man
[207]41        -rm -f stamp-latex stamp-doxygen
42
[270]43install-data-local:
[346]44if BUILD_DOCUMENTATION
[850]45        $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/libcucul-dev/html
[297]46        cp `find html -name '*.html' -o -name '*.gif' -o -name '*.png'` \
[850]47          $(DESTDIR)$(datadir)/doc/libcucul-dev/html
[270]48        $(mkinstalldirs) $(DESTDIR)$(mandir)/man3
[372]49        cp `find man -name '*.3caca'` $(DESTDIR)$(mandir)/man3
[310]50        $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
[340]51        rm -f $(DESTDIR)$(mandir)/man1/cacaball.1
[526]52        ln -s cacafire.1 $(DESTDIR)$(mandir)/man1/cacaball.1
[340]53        rm -f $(DESTDIR)$(mandir)/man1/cacamoir.1
[526]54        ln -s cacafire.1 $(DESTDIR)$(mandir)/man1/cacamoir.1
[340]55        rm -f $(DESTDIR)$(mandir)/man1/cacaplas.1
[526]56        ln -s cacafire.1 $(DESTDIR)$(mandir)/man1/cacaplas.1
[270]57endif
58
Note: See TracBrowser for help on using the repository browser.