shithub: opusfile

Download patch

ref: a0c91360cd9ea75b7f44b31841f2077c6aaadf16
parent: 7304e328fb61680d092bee6bef93d86117a9aa0c
author: Ralph Giles <giles@thaumas.net>
date: Wed Jun 24 11:04:37 EDT 2020

mingw: Build autotools opusfile in a subdirectory.

Invoking ../configure from the mingw directory would clobber
the mingw-specific Makefile, which is confusing. Instead
have the `make opusfile` target invoke the autotools build
within a subdirectory.

--- a/mingw/Makefile
+++ b/mingw/Makefile
@@ -23,9 +23,10 @@
 	$(MAKE) -f $<
 
 opusfile: $(DEPS)
-	../configure --host=$(TOOL_PREFIX) --prefix=$(CURDIR) \
+	$(MKDIR) $@
+	cd $@ && ../configure --host=$(TOOL_PREFIX) --prefix=$(CURDIR) \
 	  PKG_CONFIG_PATH=$(CURDIR)/lib/pkgconfig
-	$(MAKE)
+	$(MAKE) -C $@
 
 clean:
 	$(RM) -r objs