Ignore:
Timestamp:
Jan 3, 2010, 3:32:57 AM (11 years ago)
Author:
Sam Hocevar
Message:

Add Doxygen build rules.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/doc/Makefile.am

    r2490 r4218  
    11# $Id: Makefile.am 1986 2008-06-20 19:49:23Z jylam $
    22
    3 EXTRA_DIST = $(man_MANS)
     3EXTRA_DIST = doxygen.cfg.in doxygen.css footer.html header.html \
     4             $(man_MANS) $(doxygen_DOX)
    45
     6doxygen_DOX = neercs.dox
    57man_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
     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 > latex/refman.tex
     33        cd latex && $(MAKE) $(AM_CFLAGS) refman.pdf || (cat refman.log; exit 1)
     34        mv latex/refman.pdf latex/neercs.pdf
     35        touch stamp-latex
     36endif
     37endif
     38
     39clean: clean-local
     40clean-local:
     41        -rm -Rf html latex man
     42        -rm -f stamp-latex stamp-doxygen
    643
    744install-data-local:
    845        $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
     46if BUILD_DOCUMENTATION
     47        mkdir -p $(DESTDIR)$(datadir)/doc
     48        $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/neercs/html
     49        cp `find html -name '*.html' -o -name '*.gif' -o -name '*.png'` \
     50          $(DESTDIR)$(datadir)/doc/neercs/html
     51        $(mkinstalldirs) $(DESTDIR)$(mandir)/man3
     52        for man in $$(find man -name '*.3neercs'); do \
     53          sed -e 's/man3neercs/man3/g' -e "s/fC'\([a-zA-Z0-9]*\)'/fC\"\1\"/g" \
     54            $$man >$(DESTDIR)$(mandir)/man3/$${man##*/}; \
     55        done
     56endif
    957
     58uninstall-local:
     59        rmdir $(DESTDIR)$(datadir)/doc 2>/dev/null || true
     60
Note: See TracChangeset for help on using the changeset viewer.