Chris@69: ## GNU makefile for opusfile documentation. Chris@69: Chris@69: -include ../package_version Chris@69: Chris@69: all: doxygen Chris@69: Chris@69: doxygen: Doxyfile ../include/opusfile.h Chris@69: doxygen Chris@69: Chris@69: pdf: doxygen Chris@69: make -C latex Chris@69: Chris@69: clean: Chris@69: $(RM) -r html Chris@69: $(RM) -r latex Chris@69: Chris@69: distclean: clean Chris@69: $(RM) Doxyfile Chris@69: Chris@69: .PHONY: all clean distclean doxygen pdf Chris@69: Chris@69: ../package_version: Chris@69: @if [ -x ../update_version ]; then \ Chris@69: ../update_version || true; \ Chris@69: elif [ ! -e $@ ]; then \ Chris@69: echo 'PACKAGE_VERSION="unknown"' > $@; \ Chris@69: fi Chris@69: Chris@69: # run autoconf-like replacements to finalize our config Chris@69: Doxyfile: Doxyfile.in Makefile ../package_version Chris@69: sed -e 's/@PACKAGE_NAME@/opusfile/' \ Chris@69: -e 's/@PACKAGE_VERSION@/$(PACKAGE_VERSION)/' \ Chris@69: -e 's/@top_srcdir@/../' \ Chris@69: < $< > $@