tools/vtpm: fix tpm_version.h error during parallel build
authorOlaf Hering <olaf@aepfle.de>
Fri, 3 Aug 2012 08:54:07 +0000 (09:54 +0100)
committerOlaf Hering <olaf@aepfle.de>
Fri, 3 Aug 2012 08:54:07 +0000 (09:54 +0100)
commit672480c885d135e2f0cc53b6c0c89bedebb9a54a
treedd232183b7fb53c6c432ffc8252062e0e6a28955
parentf9e84f5c78248b39f2ac885de6efa8f025ccfa50
tools/vtpm: fix tpm_version.h error during parallel build

Generating the tpm_version.h is not make -j safe:

In file included from ../tpm/tpm_emulator.h:25:0,
                 from ../tpm/tpm_startup.c:18:
../tpm/tpm_version.h:1:0: error: unterminated #ifndef
make[5]: *** [tpm_startup.o] Error 1

This happens because make can not know that 'all-recursive' depends on
'version'. Fix this by calling the individual make targets. Doing it
this way avoids adding yet another patch to the downloaded source.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/vtpm/Makefile