Makefile: Let "make check-help" work without running ./configure
commite45eaef9b6ec4af55402980aba726e860f771bb6
authorFam Zheng <famz@redhat.com>
Thu, 10 Aug 2017 08:50:25 +0000 (10 16:50 +0800)
committerFam Zheng <famz@redhat.com>
Tue, 15 Aug 2017 07:10:15 +0000 (15 15:10 +0800)
tree9bf5fddef7168b3d2dc3ebdb15c94caeb85caf23
parent83c3a1f61673ef554facf4d6d29ed56c5a219f9d
Makefile: Let "make check-help" work without running ./configure

Currently if you do "make check-help" in a fresh checkout, only an error
is printed which is not nice:

    $ make check-help V=1
    cc -nostdlib  -o check-help.mo
    cc: fatal error: no input files
    compilation terminated.
    rules.mak:115: recipe for target 'check-help.mo' failed
    make: *** [check-help.mo] Error 1

Move the config-host.mak condition into the body of
tests/Makefile.include and always include the rule for check-help.

Reported-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <20170810085025.14076-1-famz@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Fam Zheng <famz@redhat.com>
Makefile
tests/Makefile.include