Previously, build failed because non-existent rule for ffmpeg/Makefile
generation. Now, we explicitly state that configure generates this file
but to avoid running configure multiple times, we put it into conditional
block.
$(MAKERULES_DIR)/ffmpeg/libswscale:
ln -sf ../../src/libswscale $@
+ifeq ($(wildcard $(FFMPEG_BUILD_DIR)/Makefile),)
+$(wildcard $(FFMPEG_BUILD_DIR)/Makefile): $(FFMPEG_BUILD_DIR)/config.mak
+endif
+
$(FFMPEG_BUILD_DIR)/config.mak: \
$(MAKERULES_DIR)/ffmpeg/configure \
$(MAKERULES_DIR)/../build/config.target # this file