Makefile 715 B

123456789101112131415161718192021222324252627282930313233343536
  1. ## GNU makefile for opusfile documentation.
  2. -include ../package_version
  3. all: doxygen
  4. doxygen: Doxyfile ../include/opusfile.h
  5. doxygen
  6. pdf: doxygen
  7. make -C latex
  8. clean:
  9. $(RM) -r html
  10. $(RM) -r latex
  11. distclean: clean
  12. $(RM) Doxyfile
  13. .PHONY: all clean distclean doxygen pdf
  14. ../package_version:
  15. @if [ -x ../update_version ]; then \
  16. ../update_version || true; \
  17. elif [ ! -e $@ ]; then \
  18. echo 'PACKAGE_VERSION="unknown"' > $@; \
  19. fi
  20. # run autoconf-like replacements to finalize our config
  21. Doxyfile: Doxyfile.in Makefile ../package_version
  22. sed -e 's/@PACKAGE_NAME@/opusfile/' \
  23. -e 's/@PACKAGE_VERSION@/$(PACKAGE_VERSION)/' \
  24. -e 's/@HAVE_DOT@/yes/' \
  25. -e 's/@top_srcdir@/../' \
  26. < $< > $@