1# 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 12srcdir = @srcdir@ 13top_srcdir = @top_srcdir@ 14top_builddir = @top_builddir@ 15VPATH = @srcdir@ 16 17# Determine the version of the library 18 19version = $(shell cat $(top_srcdir)/VERSION) 20 21 22.PHONY: libsrtpdoc cryptodoc clean 23libsrtpdoc: 24 @if test ! -e Doxyfile; then \ 25 echo "*** Sorry, can't build doc outside source dir"; exit 1; \ 26 fi 27 sed 's/LIBSRTPVERSION/$(version)/' header.template > header.tex 28 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 37 cd latex; make 38 cp latex/refman.pdf crypto.pdf 39 40clean: 41 rm -rf latex/ header.tex 42 for a in * ; do \ 43 if [ -f "$$a~" ] ; then rm -f $$a~; fi; \ 44 done; 45