summaryrefslogtreecommitdiffstats
path: root/resources/scripts/helpers/build/clean/grub
diff options
context:
space:
mode:
Diffstat (limited to 'resources/scripts/helpers/build/clean/grub')
-rwxr-xr-xresources/scripts/helpers/build/clean/grub14
1 files changed, 4 insertions, 10 deletions
diff --git a/resources/scripts/helpers/build/clean/grub b/resources/scripts/helpers/build/clean/grub
index e4b4a65..6c96e85 100755
--- a/resources/scripts/helpers/build/clean/grub
+++ b/resources/scripts/helpers/build/clean/grub
@@ -3,6 +3,7 @@
# helper script: clean the dependencies that were built in GRUB
#
# Copyright (C) 2014, 2015 Francis Rowe <info@gluglug.org.uk>
+# Copyright (C) 2015 Klemens Nanni <contact@autoboot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -19,20 +20,13 @@
#
# This script assumes that the current working directory is the root
-# of libreboot_src or libreboot git
+# of git or release archive
[ "x${DEBUG+set}" = 'xset' ] && set -v
set -u -e
-# clean grub
-# --------------------------------------------------------
-
-cd "grub/"
-
printf "Cleaning the previous build of GRUB\n"
-[ -f "Makefile" ] && make distclean
-
-# done. go back to main directoy
-cd "../"
+# clean GURB
+make -C grub distclean
printf "\n\n"