Makefile.am: Fix build hang when .git and Git are present but don't work.
authorBen Pfaff <blp@nicira.com>
Fri, 11 Apr 2014 20:05:45 +0000 (13:05 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 11 Apr 2014 20:08:17 +0000 (13:08 -0700)
commitca3d034b3909dfe7ae5d2044f3547e57cb9fb8f5
tree7d82e94be41c32d973ce98b30479d1847a264894
parent3cccd4084392fc05838eb001b1f8ddba23b53321
Makefile.am: Fix build hang when .git and Git are present but don't work.

If the .git directory is there, and "git --version" works, but "git
ls-files" fails to print any file names (e.g. perhaps because .git is a
symlink to an inaccessible directory) then the "grep" command in the
thread-safety-check rule would hang forever because it had an empty list
of files and therefore expected to read from stdin.  This fixes the problem
by adding the name of an empty file to the command, which is harmless.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Alex Wang <alexw@nicira.com>
Makefile.am