• Kir Kolyshkin's avatar
    test/zdtm/Makefile.inc: don't regen all deps · 44a2a651
    Kir Kolyshkin authored
    As it was pointed out by our esteemed maintainer (let his light shine),
    after my recent changes to test/zdtm Makefiles all dependencies are
    regenerated even if we only need to build a single test (for example,
    cd test/zdtm/static && make env00).
    
    This was caused by "-include $(DEP)" statement. Make sees that these files
    are need to be included, but are missing, and since it knows how to generate
    them it goes on to do so.
    
    The solution is to use $(wildcard) function which returns the list of
    _existing_ files, and so include will only receive the files that exist.
    Reported-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
    Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    44a2a651
Makefile.inc 1.88 KB