Makefile: ask "ls-files" to list source files if available
commit335339758c48ed17c8eb34437269e821824f577b
authorJunio C Hamano <gitster@pobox.com>
Tue, 18 Oct 2011 07:26:18 +0000 (18 00:26 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Oct 2011 17:03:00 +0000 (18 10:03 -0700)
tree2c0598561c86dfdabb9cfd295e1be762ec7f625c
parent703f05ad5835cff92b12c29aecf8d724c8c847e2
Makefile: ask "ls-files" to list source files if available

The [ce]tags and cscope targets used to run "find" looking for any paths
that match '*.[chS]' to feed the list of source files to downstream xargs.

Use "git ls-files" if it is already available to us, and otherwise use a
tighter "find" expression that does not list directories and does not go
into our .git directory.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile