summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-07-20 18:10:27 +0000
committerMåns Rullgård <mans@mansr.com>2010-07-20 18:10:27 +0000
commit86601915d2b2dadd70cba02b0af2ac761364d75c (patch)
tree634892b82e4cd896f5d2f9ed011fcfbf79d23148 /Makefile
parentf6ae77d46909c04454233191d6c2d8eff8fc529b (diff)
Rerun configure when all*.c files have changed
Originally committed as revision 24370 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9b9f7f8006..8949fdac30 100644
--- a/Makefile
+++ b/Makefile
@@ -56,6 +56,9 @@ $(PROGS): %$(EXESUF): %_g$(EXESUF)
$(CP) $< $@
$(STRIP) $@
+config.h: .config
+.config: $(wildcard $(FFLIBS:%=$(SRC_DIR)/lib%/all*.c))
+
SUBDIR_VARS := OBJS FFLIBS CLEANFILES DIRS TESTPROGS EXAMPLES SKIPHEADERS \
ALTIVEC-OBJS MMX-OBJS NEON-OBJS X86-OBJS YASM-OBJS-FFT YASM-OBJS \
HOSTPROGS BUILT_HEADERS TESTOBJS ARCH_HEADERS
@@ -164,8 +167,9 @@ distclean::
$(RM) $(DISTCLEANSUFFIXES)
$(RM) version.h config.* libavutil/avconfig.h
-config:
+config .config:
$(SRC_PATH)/configure $(value FFMPEG_CONFIGURATION)
+ @touch .config
# regression tests