Makefile: fix 'hdr-check' when GCRYPT not installed
commitf23aa18e7fef59f9187a733e752dc425aa5346bf
authorRamsay Jones <ramsay@ramsayjones.plus.com>
Wed, 6 Mar 2019 00:11:13 +0000 (6 00:11 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Mar 2019 04:55:07 +0000 (6 13:55 +0900)
tree01e963c7ada5d8667f54adb1ea9d6a8196509271
parent0d0ac3826a3bbb9247e39e12623bbcfdd722f24c
Makefile: fix 'hdr-check' when GCRYPT not installed

If the GCRYPT_SHA256 build variable is not set, then the 'hdr-check'
target complains about the missing <gcrypt.h> header file. Add the
'sha256/gcrypt.h' header file to the exception list, if the build
variable is not defined. While here, replace the 'xdiff%' filter
pattern with 'xdiff/%' (and similarly for the compat pattern) since
the original pattern inadvertently excluded the 'xdiff-interface.h'
header.

Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile