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

Last change on this file since 1103 was 1103, checked in by Sam Hocevar, 13 years ago
  • Fucking Doxygen replaces "s with 's in manpages. And it does not even escape them. Fix that upon installation.
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Makefile.am 1103 2006-09-25 15:58:33Z sam $
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 style.dox
6man_MANS = caca-config.1 cacafire.1 cacaview.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
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.