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