source: trunk/doc/Makefile.am @ 2167

Last change on this file since 2167 was 2167, checked in by jylam, 7 years ago
  • Doxygen doc / manpages
File size: 1.7 KB
Line 
1EXTRA_DIST = doxygen.cfg.in doxygen.css footer.html header.html \
2             $(man_MANS) $(doxygen_DOX)
3CLEANFILES = doxygen.log stamp-latex stamp-doxygen
4
5doxygen_DOX = lolengine.dox
6man_MANS = lolengine.1
7
8if BUILD_DOCUMENTATION
9htmldoc_DATA = html/doxygen.css
10htmldocdir = $(datadir)/doc/lolengine-dev/html
11if USE_LATEX
12pdfdoc_DATA = latex/lolengine.pdf
13pdfdocdir = $(datadir)/doc/lolengine-dev/pdf
14endif
15endif
16
17html/doxygen.css html/doxygen.png: stamp-doxygen
18latex/lolengine.pdf: stamp-latex
19
20stamp-doxygen: $(doxygen_DOX)
21if BUILD_DOCUMENTATION
22        doxygen doxygen.cfg 2>&1 | tee doxygen.log
23        touch stamp-doxygen
24endif
25
26stamp-latex: stamp-doxygen
27if BUILD_DOCUMENTATION
28if USE_LATEX
29        rm -f latex/lolengine.tex latex/lolengine.pdf
30        mv latex/refman.tex latex/lolengine.tex
31        sed 's/setlength{/renewcommand{/' latex/lolengine.tex \
32          | sed 's/.*usepackage.*times.*//' > latex/refman.tex
33        cd latex && $(MAKE) $(AM_CFLAGS) refman.pdf || (cat refman.log; exit 1)
34        mv latex/refman.pdf latex/lolengine.pdf
35        touch stamp-latex
36endif
37endif
38
39clean-local:
40        -rm -Rf html latex man
41
42install-data-local:
43if BUILD_DOCUMENTATION
44        mkdir -p $(DESTDIR)$(datadir)/doc
45        $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/lolengine-dev/html
46        cp `find html -name '*.html' -o -name '*.gif' -o -name '*.png'` \
47          $(DESTDIR)$(datadir)/doc/lolengine-dev/html
48        $(mkinstalldirs) $(DESTDIR)$(mandir)/man3
49        for man in $$(find man -name '*.3lol'); do \
50          sed -e 's/man3lol/man3/g' -e "s/fC'\([a-zA-Z0-9]*\)'/fC\"\1\"/g" \
51            $$man >$(DESTDIR)$(mandir)/man3/$${man##*/}; \
52        done
53endif
54        $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
55
56uninstall-local:
57        rm -f $(DESTDIR)$(datadir)/doc/libcucul-dev
58        rmdir $(DESTDIR)$(datadir)/doc 2>/dev/null || true
59
Note: See TracBrowser for help on using the repository browser.