aboutsummaryrefslogtreecommitdiffstats
path: root/common.mak
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-06-24 09:10:25 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-06-24 09:39:11 +0200
commit95dd1741af2c0416b74135f6ccf40f4bab5583b6 (patch)
tree1aaf64340bdbcffe53659d80c34bcb761e402c0d /common.mak
parent2ec899222b3c90b3496a502175baac74cac1f564 (diff)
downloadffmpeg-95dd1741af2c0416b74135f6ccf40f4bab5583b6.tar.gz
Allow running make in subdirs again.
Diffstat (limited to 'common.mak')
-rw-r--r--common.mak6
1 files changed, 6 insertions, 0 deletions
diff --git a/common.mak b/common.mak
index 8d21d154d5..7c03e48091 100644
--- a/common.mak
+++ b/common.mak
@@ -7,6 +7,12 @@ all: all-yes
ifndef SUBDIR
+ifndef MAIN_MAKEFILE
+ifeq ($(SRC_PATH),.)
+SRC_PATH = ..
+endif
+endif
+
ifndef V
Q = @
ECHO = printf "$(1)\t%s\n" $(2)