handle/make/file: fix uefitool builds

the current check only worked if it had already
been built, when checking for the Makefile

however, running this during build/release/src
caused problems, hence the current check

so: perform the same check, but as a fallback for
cmake failing (and if that check fails, only then
will err be called)

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2023-09-02 10:43:35 +01:00
parent 4885c7962d
commit a3bc7ccd71
+1 -1
View File
@@ -60,7 +60,7 @@ handle_dependencies()
if [ "${project}" = "uefitool" ]; then
(
cd uefitool || err "handle_dependencies: !cd uefitool"
[ ! -f UEFIExtract/Makefile ] || cmake UEFIExtract/ || \
cmake UEFIExtract/ || [ -f Makefile ] || \
err "handle_dependencies: !cmake UEFIExtract/"
)
fi