Makefile 685 B

1234567891011121314151617181920212223242526272829303132333435
  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/@top_srcdir@/../' \
  25. < $< > $@