diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-11-29 17:56:48 (EST) |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-11-29 17:56:48 (EST) |
commit | a6a7f8723564a67bc10c6f879fde528589a6521b (patch) | |
tree | c9ccf22734fd879617e27e047ecb7047feeef423 /resources/scripts/helpers/build | |
parent | b2c87be0ae8c70bc57963cfe508bd0fa7288b20f (diff) | |
download | libreboot-a6a7f8723564a67bc10c6f879fde528589a6521b.zip libreboot-a6a7f8723564a67bc10c6f879fde528589a6521b.tar.gz libreboot-a6a7f8723564a67bc10c6f879fde528589a6521b.tar.bz2 |
grub: only run distclean if a makefile exists (fixes build error)
Diffstat (limited to 'resources/scripts/helpers/build')
-rwxr-xr-x | resources/scripts/helpers/build/clean/grub | 2 | ||||
-rwxr-xr-x | resources/scripts/helpers/build/module/grub | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/resources/scripts/helpers/build/clean/grub b/resources/scripts/helpers/build/clean/grub index 6c96e85..1d0f5be 100755 --- a/resources/scripts/helpers/build/clean/grub +++ b/resources/scripts/helpers/build/clean/grub @@ -27,6 +27,6 @@ set -u -e printf "Cleaning the previous build of GRUB\n" # clean GURB -make -C grub distclean +[ -d grub/Makefile ] && make -C grub distclean printf "\n\n" diff --git a/resources/scripts/helpers/build/module/grub b/resources/scripts/helpers/build/module/grub index 030dd95..e96b7e7 100755 --- a/resources/scripts/helpers/build/module/grub +++ b/resources/scripts/helpers/build/module/grub @@ -33,7 +33,7 @@ printf "Building GRUB\n" cd "grub/" # clean it first -make distclean +[ -d Makefile ] && make distclean # build grub ./autogen.sh |