summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2016-01-26 22:54:01 +0100
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2016-02-06 15:30:25 +0100
commite740c3fb90c02802bc121e9f5a3cf58615b4cea1 (patch)
tree3788c850003446a364369c57e89abd9600d63246 /Makefile
parent956fed377b4c53dde5005e1def8e999e24cae70e (diff)
downloadffmpeg-e740c3fb90c02802bc121e9f5a3cf58615b4cea1.tar.gz
configure: fall back to using full path if src is a directory
Or when building in-tree. Also don't try to remove src on distclean in these cases. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e484249065..7d8ae4bb22 100644
--- a/Makefile
+++ b/Makefile
@@ -181,7 +181,10 @@ clean::
distclean::
$(RM) $(DISTCLEANSUFFIXES)
- $(RM) config.* .config libavutil/avconfig.h .version avversion.h version.h libavutil/ffversion.h libavcodec/codec_names.h src
+ $(RM) config.* .config libavutil/avconfig.h .version avversion.h version.h libavutil/ffversion.h libavcodec/codec_names.h
+ifeq ($(SRC_LINK),src)
+ $(RM) src
+endif
$(RM) -rf doc/examples/pc-uninstalled
config: