Hash :
7d047fd5
Author :
Date :
2008-05-09T13:42:25
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
if HAVE_DOXYGEN
htmldocdir = $(datadir)/doc/ftgl/html
htmldoc_DATA = html/doxygen.css
if HAVE_LATEX
pdfdocdir = $(datadir)/doc/ftgl
pdfdoc_DATA = latex/ftgl.pdf
endif
endif
PNGS = \
images/logo.png \
images/metrics.png \
images/rasterfont.png \
images/vectorfont.png \
images/texturefont.png \
$(NULL)
stamp-eps: $(PNGS)
if HAVE_LATEX
for i in $^; do convert $$i $$(echo $$i | sed 's/png$$/eps/'); done
endif
touch $@
html/doxygen.css: stamp-doxygen
stamp-doxygen: doxygen.cfg stamp-eps
$(DOXYGEN) $^
touch $@
latex/ftgl.pdf: stamp-latex
stamp-latex: stamp-doxygen
rm -f latex/ftgl.tex latex/ftgl.pdf
mv latex/refman.tex latex/ftgl.tex
sed 's/setlength{/renewcommand{/' latex/ftgl.tex > latex/refman.tex
cd latex && $(MAKE) $(AM_CFLAGS) refman.pdf #|| (cat refman.log; exit 1)
mv latex/refman.pdf latex/ftgl.pdf
touch stamp-latex
clean: clean-local
clean-local:
$(RM) -rf html latex
$(RM) -f images/*.eps
$(RM) -f stamp-doxygen stamp-latex stamp-eps
if HAVE_DOXYGEN
install-data-local: html/doxygen.css
$(mkinstalldirs) $(DESTDIR)$(htmldocdir)/
$(INSTALL) -m 0644 \
`find html -name '*.html' -o -name '*.gif' -o -name '*.png' -o -name '*.jpg'` \
$(DESTDIR)$(htmldocdir)/
endif
EXTRA_DIST = \
doxygen.cfg.in \
ftgl.dox \
FTGL_1_3.gif \
$(PNGS) \
images/metrics.svg \
$(NULL)
NULL =