shithub: opusfile

Download patch

ref: 0f429a077ef2a49914e18eb3646095a7dde603d6
parent: b89a1798abc6a8c0d8a0ba5047bf577cc622d82e
author: Ralph Giles <[email protected]>
date: Tue Aug 6 12:28:31 EDT 2013

Add a magic vpath to the unix makefile.

This satisfies the Makefile's dependency on itself when buiding
in a parallel directory, like I use for the mingw builds, without
having to 'touch Makefile' as a work-around.

--- a/unix/Makefile
+++ b/unix/Makefile
@@ -207,6 +207,8 @@
 	-rmdir ${WORKDIR}
 
 # Make everything depend on changes in the Makefile
+# This vpath directive needs to be before any include statements
+vpath Makefile $(dir $(lastword $(MAKEFILE_LIST)))
 ${ALL_ASM} ${ALL_OBJS} ${ALL_DEPS} ${ALL_TARGETS} : Makefile
 
 # Specify which targets are phony for GNU make