Instead of introducing a new target defined conditionally and all that ...

Why not just:

````make
ifeq  (, $(wildcard $(srcdir)/.git))
    SKIP_SUBMODULE_CHECK=1
endif
````

near the top of the ``Makefile.in``?