summaryrefslogtreecommitdiff
path: root/lib/opusfile/doc/Makefile
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-08-09 12:00:02 +1000
committerjacqueline <me@jacqueline.id.au>2023-08-09 12:00:02 +1000
commit67caeb6e3cda44205ba8fe783274b20dc7ea216e (patch)
treea2504d177c60e69808073236af8303517cf8fb66 /lib/opusfile/doc/Makefile
parent578c3737f8c07e543b90f964da0e89db1c18bb9a (diff)
downloadtangara-fw-67caeb6e3cda44205ba8fe783274b20dc7ea216e.tar.gz
Use opusfile instead of working directly with ogg and opus
Diffstat (limited to 'lib/opusfile/doc/Makefile')
-rw-r--r--lib/opusfile/doc/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/opusfile/doc/Makefile b/lib/opusfile/doc/Makefile
new file mode 100644
index 00000000..1ae1adc9
--- /dev/null
+++ b/lib/opusfile/doc/Makefile
@@ -0,0 +1,35 @@
+## 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/@HAVE_DOT@/yes/' \
+ -e 's/@top_srcdir@/../' \
+ < $< > $@