diff src/opusfile-0.9/doc/Makefile @ 154:4664ac0c1032

Add Opus sources and macOS builds
author Chris Cannam <cannam@all-day-breakfast.com>
date Wed, 23 Jan 2019 13:48:08 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/opusfile-0.9/doc/Makefile	Wed Jan 23 13:48:08 2019 +0000
@@ -0,0 +1,34 @@
+## GNU makefile for opusfile documentation.
+
+-include ../package_version
+
+all: doxygen
+
+doxygen: Doxyfile ../include/opusfile.h
+	doxygen
+
+pdf: doxygen
+	make -C latex
+
+clean:
+	$(RM) -r html
+	$(RM) -r latex
+
+distclean: clean
+	$(RM) Doxyfile
+
+.PHONY: all clean distclean doxygen pdf
+
+../package_version:
+	@if [ -x ../update_version ]; then \
+		../update_version || true; \
+	elif [ ! -e $@ ]; then \
+		echo 'PACKAGE_VERSION="unknown"' > $@; \
+	fi
+
+# run autoconf-like replacements to finalize our config
+Doxyfile: Doxyfile.in Makefile ../package_version
+	sed -e 's/@PACKAGE_NAME@/opusfile/' \
+	    -e 's/@PACKAGE_VERSION@/$(PACKAGE_VERSION)/' \
+	    -e 's/@top_srcdir@/../' \
+	  < $< > $@