source: neercs/trunk/doc/Makefile.am @ 4366

Last change on this file since 4366 was 4366, checked in by Sam Hocevar, 12 years ago

Clean up source code, copyright information, author names, SVN keywords...

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