Makefile.in 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. srcdir = @srcdir@
  12. top_srcdir = @top_srcdir@
  13. top_builddir = @top_builddir@
  14. VPATH = @srcdir@
  15. # Determine the version of the library
  16. version = $(shell cat $(top_srcdir)/VERSION)
  17. .PHONY: libsrtpdoc cryptodoc clean
  18. libsrtpdoc:
  19. @if test ! -e Doxyfile; then \
  20. echo "*** Sorry, can't build doc outside source dir"; exit 1; \
  21. fi
  22. sed 's/LIBSRTPVERSION/$(version)/' header.template > header.tex
  23. doxygen
  24. sed 's/\subsection/\section/' latex/index.tex > latex/index.tmp
  25. mv latex/index.tmp latex/index.tex
  26. cd latex; make
  27. cp latex/refman.pdf libsrtp.pdf
  28. cryptodoc: clean
  29. doxygen crypto.dox
  30. cd latex; make
  31. cp latex/refman.pdf crypto.pdf
  32. clean:
  33. rm -rf latex/ header.tex
  34. for a in * ; do \
  35. if [ -f "$$a~" ] ; then rm -f $$a~; fi; \
  36. done;