Makefile: fix checking whether reconfiguring is required
authorAnton Khirnov <anton@khirnov.net>
Wed, 19 Oct 2016 05:28:06 +0000 (07:28 +0200)
committerAnton Khirnov <anton@khirnov.net>
Fri, 21 Oct 2016 08:11:36 +0000 (10:11 +0200)
It didn't take into account the new pattern used for bitstream filters
and protocols.

Makefile

index 34f0c9c278111b98fa0fdba85a12091c8db4eeb0..e860f2c728657d50b9eac9a15678b5d29cf95a62 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -121,8 +121,13 @@ $(TOOLS): %$(EXESUF): %.o $(EXEOBJS)
 
 tools/cws2fws$(EXESUF): ELIBS = $(ZLIB)
 
+CONFIGURABLE_COMPONENTS =                                           \
+    $(wildcard $(FFLIBS:%=$(SRC_PATH)/lib%/all*.c))                 \
+    $(SRC_PATH)/libavcodec/bitstream_filters.c                      \
+    $(SRC_PATH)/libavformat/protocols.c                             \
+
 config.h: .config
-.config: $(wildcard $(FFLIBS:%=$(SRC_PATH)/lib%/all*.c))
+.config: $(CONFIGURABLE_COMPONENTS)
        @-tput bold 2>/dev/null
        @-printf '\nWARNING: $(?F) newer than config.h, rerun configure\n\n'
        @-tput sgr0 2>/dev/null