freeswitch/libs/srtp/doc/Makefile.in
Anthony Minessale b3d890ef25 add srtp
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1086 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-07 16:10:03 +00:00

45 lines
1.1 KiB
Makefile

# Makefile for libSRTP documentation
#
# David A. McGrew
# Cisco Systems, Inc.
#
# This makefile does not use the autoconf system; we don't really need
# it. We just run doxygen then latex. If you don't have either of
# these, then there is no way that you can make your own
# documentation. Of course, you can just go online at pick up the
# documentation from http://srtp.sourceforge.net.
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
VPATH = @srcdir@
# Determine the version of the library
version = $(shell cat $(top_srcdir)/VERSION)
.PHONY: libsrtpdoc cryptodoc clean
libsrtpdoc:
@if test ! -e Doxyfile; then \
echo "*** Sorry, can't build doc outside source dir"; exit 1; \
fi
sed 's/LIBSRTPVERSION/$(version)/' header.template > header.tex
doxygen
sed 's/\subsection/\section/' latex/index.tex > latex/index.tmp
mv latex/index.tmp latex/index.tex
cd latex; make
cp latex/refman.pdf libsrtp.pdf
cryptodoc: clean
doxygen crypto.dox
cd latex; make
cp latex/refman.pdf crypto.pdf
clean:
rm -rf latex/ header.tex
for a in * ; do \
if [ -f "$$a~" ] ; then rm -f $$a~; fi; \
done;