On Mon, 27 May 2013, Martin Storsjö wrote:

From: Diego Biurrun <di...@biurrun.de>

During each make run, the build system checks that any specified dependencies
do actually exist, to prevent typos and other errors from fouling up correct
dependency settings. However, it also causes make to trip up when new
components have been added to the code, but not yet registered in the build
system by configure. A manual configure call is required in this case.

The "config" target is designed precisely to reinitialize the build without
having to manually call configure.  Skip the dependency check when running
the "config" target to allow automatic reconfiguration in such cases.

Also skip the dependency check when doing clean, distclean and fate-rsync.
---
tests/Makefile |    4 ++++
1 file changed, 4 insertions(+)

diff --git a/tests/Makefile b/tests/Makefile
index 1b3f319..1aed4f6 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -20,7 +20,11 @@ tests/data/vsynth2.yuv: tests/rotozoom$(HOSTEXESUF) | 
tests/data

tests/data/asynth% tests/data/vsynth%.yuv tests/vsynth%/00.pgm: TAG = GEN

+# Do not check existence of config variables when reconfiguring to allow new
+# config variables getting registered in the build system.
+ifneq ($(filter clean config distclean fate-rsync, $(MAKECMDGOALS)), 
$(MAKECMDGOALS))
CHKCFG  = $(if $($(1))$(!$(1)),$($(1)), $(error No such config: $(1)))
+endif

Another less backwards way of writing this probably would be

ifneq ($(filter-out clean config distclean fate-rsync, $(MAKECMDGOALS)), )

I can amend it to that if you prefer that version.

// Martin
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to