shithub: opusfile

Download patch

ref: bed73602d307ae5ed87cc2d4f9a8babd1170f77a
parent: e7661191c6da41f61d9a1ada1c30d676e83dc227
author: Ralph Giles <giles@mozilla.com>
date: Sun Sep 30 06:18:12 EDT 2012

Fix the doc makefile.

The autoconf build replaced the static Doxyfile with a Doxyfile.in
template. In the autoconf build, the config.status script applies
substitutions to generate the actual Doxyfile. This made the generic
doc/Makefile non-functional.

Apply similar substitutions directly with the makefile so we can
still build documentation outside the context of the autoconf build.

Also add a 'distclean' target to remove the generated Doxyfile.

--- a/doc/Makefile
+++ b/doc/Makefile
@@ -12,4 +12,15 @@
 	$(RM) -r html
 	$(RM) -r latex
 
-.PHONY: all clean doxygen
+distclean: clean
+	$(RM) Doxyfile
+
+.PHONY: all clean distclean doxygen pdf
+
+# run autoconf-like replacements to finalize our config
+GIT_VERSION := $(shell /bin/sh git-version.sh)
+Doxyfile: Doxyfile.in Makefile
+	cat $< | sed -e 's/@PACKAGE@/opusfile/' \
+		     -e 's/@VERSION@/$(GIT_VERSION)/' \
+		     -e 's/@top_srcdir@/../' \
+	       > $@