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

Last change on this file since 4330 was 4220, checked in by Sam Hocevar, 10 years ago

Clean up .gitignore and documentation build rules.

  • Property svn:keywords set to Id
File size: 1.9 KB
RevLine 
[342]1# $Id: Makefile.am 4220 2010-01-03 02:54:32Z sam $
[341]2
[1986]3EXTRA_DIST = doxygen.cfg.in doxygen.css footer.html header.html \
4             $(man_MANS) $(doxygen_DOX)
[4220]5CLEANFILES = doxygen.log stamp-latex stamp-doxygen
[207]6
[1357]7doxygen_DOX = libcaca.dox user.dox migrating.dox tutorial.dox canvas.dox font.dox style.dox
[1916]8man_MANS = caca-config.1 cacafire.1 cacaview.1 cacaserver.1 img2txt.1 cacaplay.1
[207]9
[346]10if BUILD_DOCUMENTATION
[296]11htmldoc_DATA = html/doxygen.css
[2821]12htmldocdir = $(datadir)/doc/libcaca-dev/html
[346]13if USE_LATEX
[772]14pdfdoc_DATA = latex/libcaca.pdf
[2821]15pdfdocdir = $(datadir)/doc/libcaca-dev/pdf
[270]16endif
17endif
[207]18
[270]19html/doxygen.css html/doxygen.png: stamp-doxygen
[772]20latex/libcaca.pdf: stamp-latex
[270]21
[847]22stamp-doxygen: $(doxygen_DOX)
[346]23if BUILD_DOCUMENTATION
[4220]24        doxygen doxygen.cfg 2>&1 | tee doxygen.log
[207]25        touch stamp-doxygen
26endif
27
28stamp-latex: stamp-doxygen
[346]29if BUILD_DOCUMENTATION
30if USE_LATEX
[772]31        rm -f latex/libcaca.tex latex/libcaca.pdf
[313]32        mv latex/refman.tex latex/libcaca.tex
33        sed 's/setlength{/renewcommand{/' latex/libcaca.tex > latex/refman.tex
[1835]34        cd latex && $(MAKE) $(AM_CFLAGS) refman.pdf || (cat refman.log; exit 1)
[772]35        mv latex/refman.pdf latex/libcaca.pdf
[207]36        touch stamp-latex
37endif
38endif
39
40clean-local:
[268]41        -rm -Rf html latex man
[207]42
[270]43install-data-local:
[346]44if BUILD_DOCUMENTATION
[2835]45        mkdir -p $(DESTDIR)$(datadir)/doc
[3118]46        ln -sf libcaca-dev $(DESTDIR)$(datadir)/doc/libcucul-dev
[2821]47        $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/libcaca-dev/html
[297]48        cp `find html -name '*.html' -o -name '*.gif' -o -name '*.png'` \
[2821]49          $(DESTDIR)$(datadir)/doc/libcaca-dev/html
[270]50        $(mkinstalldirs) $(DESTDIR)$(mandir)/man3
[1020]51        for man in $$(find man -name '*.3caca'); do \
[1103]52          sed -e 's/man3caca/man3/g' -e "s/fC'\([a-zA-Z0-9]*\)'/fC\"\1\"/g" \
53            $$man >$(DESTDIR)$(mandir)/man3/$${man##*/}; \
[1020]54        done
[4220]55endif
[310]56        $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
[1093]57        rm -f $(DESTDIR)$(mandir)/man1/cacademo.1
[3118]58        ln -sf cacafire.1 $(DESTDIR)$(mandir)/man1/cacademo.1
[270]59
[2831]60uninstall-local:
61        rm -f $(DESTDIR)$(datadir)/doc/libcucul-dev
[2835]62        rmdir $(DESTDIR)$(datadir)/doc 2>/dev/null || true
[2831]63
Note: See TracBrowser for help on using the repository browser.