blob: 5b4b6bd174c1e785e8a2b49c821e773e828acd14 [file] [log] [blame]
Cullen Jennings235513a2005-09-21 22:51:36 +00001# Makefile for libSRTP documentation
2#
3# David A. McGrew
4# Cisco Systems, Inc.
5#
6# This makefile does not use the autoconf system; we don't really need
7# it. We just run doxygen then latex. If you don't have either of
8# these, then there is no way that you can make your own
9# documentation. Of course, you can just go online at pick up the
10# documentation from http://srtp.sourceforge.net.
11
Marcus Sundberg82b109e2005-09-29 14:27:35 +000012srcdir = @srcdir@
13top_srcdir = @top_srcdir@
14top_builddir = @top_builddir@
15VPATH = @srcdir@
16
David McGrew7c01b712005-09-27 15:38:26 +000017# Determine the version of the library
18
Marcus Sundberg82b109e2005-09-29 14:27:35 +000019version = $(shell cat $(top_srcdir)/VERSION)
David McGrew7c01b712005-09-27 15:38:26 +000020
21
Cullen Jennings235513a2005-09-21 22:51:36 +000022.PHONY: libsrtpdoc cryptodoc clean
David McGrew7c01b712005-09-27 15:38:26 +000023libsrtpdoc:
Marcus Sundberg82b109e2005-09-29 14:27:35 +000024 @if test ! -e Doxyfile; then \
25 echo "*** Sorry, can't build doc outside source dir"; exit 1; \
26 fi
David McGrew7c01b712005-09-27 15:38:26 +000027 sed 's/LIBSRTPVERSION/$(version)/' header.template > header.tex
Cullen Jennings235513a2005-09-21 22:51:36 +000028 doxygen
29 sed 's/\subsection/\section/' latex/index.tex > latex/index.tmp
30 mv latex/index.tmp latex/index.tex
31 cd latex; make
32 cp latex/refman.pdf libsrtp.pdf
33
34
35cryptodoc: clean
36 doxygen crypto.dox
Cullen Jennings235513a2005-09-21 22:51:36 +000037 cd latex; make
38 cp latex/refman.pdf crypto.pdf
39
40clean:
David McGrew7c01b712005-09-27 15:38:26 +000041 rm -rf latex/ header.tex
Cullen Jennings235513a2005-09-21 22:51:36 +000042 for a in * ; do \
43 if [ -f "$$a~" ] ; then rm -f $$a~; fi; \
44 done;