Revert "we use glibc, and gconv. Don't need our own transcoding stuff, glibc does"
[apps/madmutt.git] / apidoc / Makefile.am
1 # $Id: Makefile.am 1036 2006-11-12 10:42:14Z sam $
2
3 EXTRA_DIST = doxygen.cfg.in $(doxygen_DOX)
4 doxygen_DOX = 
5
6 if BUILD_DOCUMENTATION
7 htmldoc_DATA = html/doxygen.css
8 htmldocdir = $(datadir)/doc/madmutt-api/html
9 if USE_LATEX
10 pdfdoc_DATA = latex/madmutt-api.pdf
11 pdfdocdir = $(datadir)/doc/madmutt-api/pdf
12 endif
13 endif
14
15 html/doxygen.css html/doxygen.png: stamp-doxygen
16 latex/madmutt-api.pdf: stamp-latex
17
18 stamp-doxygen: $(doxygen_DOX)
19 if BUILD_DOCUMENTATION
20         doxygen doxygen.cfg
21         touch stamp-doxygen
22 endif
23
24 stamp-latex: stamp-doxygen
25 if BUILD_DOCUMENTATION
26 if USE_LATEX
27         rm -f latex/madmutt-api.tex latex/madmutt-api.pdf
28         mv latex/refman.tex latex/madmutt-api.tex
29         sed 's/setlength{/renewcommand{/' latex/madmutt-api.tex > latex/refman.tex
30         cd latex && $(MAKE) $(AM_CFLAGS) refman.pdf
31         mv latex/refman.pdf latex/madmutt-api.pdf
32         touch stamp-latex
33 endif
34 endif
35
36 clean: clean-local
37 clean-local:
38         -rm -Rf html latex
39         -rm -f stamp-latex stamp-doxygen
40
41 install-data-local:
42 if BUILD_DOCUMENTATION
43         $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/madmutt-api/html
44         cp `find html -name '*.html' -o -name '*.gif' -o -name '*.png'` \
45           $(DESTDIR)$(datadir)/doc/madmutt-api/html
46 endif
47