allow vpath search only for source files
[ffmpeg.git] / Makefile
index 8191165..1a300c9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,9 @@
 #
 include config.mak
 
-VPATH=$(SRC_PATH_BARE)
+vpath %.c    $(SRC_PATH_BARE)
+vpath %.h    $(SRC_PATH_BARE)
+vpath %.texi $(SRC_PATH_BARE)
 
 CFLAGS=$(OPTFLAGS) -I$(BUILD_ROOT) -I$(SRC_PATH) -I$(SRC_PATH)/libavutil \
        -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libswscale \