Skip to content

Commit a0c9136

Browse files
committed
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.
1 parent 7304e32 commit a0c9136

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mingw/Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ libopusfile-0.dll: ../unix/Makefile $(DEPS)
2323
$(MAKE) -f $<
2424

2525
opusfile: $(DEPS)
26-
../configure --host=$(TOOL_PREFIX) --prefix=$(CURDIR) \
26+
$(MKDIR) $@
27+
cd $@ && ../configure --host=$(TOOL_PREFIX) --prefix=$(CURDIR) \
2728
PKG_CONFIG_PATH=$(CURDIR)/lib/pkgconfig
28-
$(MAKE)
29+
$(MAKE) -C $@
2930

3031
clean:
3132
$(RM) -r objs

0 commit comments

Comments
 (0)