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

Last change on this file since 1916 was 1916, checked in by Jean-Yves Lamoureux, 12 years ago
  • Updated documentation to reflect img2irc name change, fixed typo in img2txt help
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Makefile.am 1916 2007-11-07 09:44:26Z jylam $
2
3EXTRA_DIST = doxygen.cfg.in footer.html header.html $(man_MANS) $(doxygen_DOX)
4
5doxygen_DOX = libcaca.dox user.dox migrating.dox tutorial.dox canvas.dox font.dox style.dox
6man_MANS = caca-config.1 cacafire.1 cacaview.1 cacaserver.1 img2txt.1 cacaplay.1
7
8if BUILD_DOCUMENTATION
9htmldoc_DATA = html/doxygen.css
10htmldocdir = $(datadir)/doc/libcucul-dev/html
11if USE_LATEX
12pdfdoc_DATA = latex/libcaca.pdf
13pdfdocdir = $(datadir)/doc/libcucul-dev/pdf
14endif
15endif
16
17html/doxygen.css html/doxygen.png: stamp-doxygen
18latex/libcaca.pdf: stamp-latex
19
20stamp-doxygen: $(doxygen_DOX)
21if BUILD_DOCUMENTATION
22        doxygen doxygen.cfg
23        touch stamp-doxygen
24endif
25
26stamp-latex: stamp-doxygen
27if BUILD_DOCUMENTATION
28if USE_LATEX
29        rm -f latex/libcaca.tex latex/libcaca.pdf
30        mv latex/refman.tex latex/libcaca.tex
31        sed 's/setlength{/renewcommand{/' latex/libcaca.tex > latex/refman.tex
32        cd latex && $(MAKE) $(AM_CFLAGS) refman.pdf || (cat refman.log; exit 1)
33        mv latex/refman.pdf latex/libcaca.pdf
34        touch stamp-latex
35endif
36endif
37
38clean: clean-local
39clean-local:
40        -rm -Rf html latex man
41        -rm -f stamp-latex stamp-doxygen
42
43install-data-local:
44if BUILD_DOCUMENTATION
45        $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/libcucul-dev/html
46        cp `find html -name '*.html' -o -name '*.gif' -o -name '*.png'` \
47          $(DESTDIR)$(datadir)/doc/libcucul-dev/html
48        $(mkinstalldirs) $(DESTDIR)$(mandir)/man3
49        for man in $$(find man -name '*.3caca'); do \
50          sed -e 's/man3caca/man3/g' -e "s/fC'\([a-zA-Z0-9]*\)'/fC\"\1\"/g" \
51            $$man >$(DESTDIR)$(mandir)/man3/$${man##*/}; \
52        done
53        $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
54        rm -f $(DESTDIR)$(mandir)/man1/cacademo.1
55        ln -s cacafire.1 $(DESTDIR)$(mandir)/man1/cacademo.1
56endif
57
Note: See TracBrowser for help on using the repository browser.