diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2014-05-05 13:51:49 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2014-05-05 13:51:49 +0300 |
commit | 2c4e07eb992e1bcefd45e574c946006c61db8789 (patch) | |
tree | 419eead5aff6840b4271aef294735ba7ffb0afa0 /saucy-armhf-developer | |
parent | 969f7d26b3842be109879d470f9e7bba7a762167 (diff) |
Improve make clean
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'saucy-armhf-developer')
-rwxr-xr-x | saucy-armhf-developer/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/saucy-armhf-developer/Makefile b/saucy-armhf-developer/Makefile index e102184..f0ccf03 100755 --- a/saucy-armhf-developer/Makefile +++ b/saucy-armhf-developer/Makefile @@ -7,7 +7,9 @@ # You need live-build package installed and superuser privileges. -IMAGEPREFIX=linaro-saucy-developer-`date +%Y%m%d`-$(BUILD_NUMBER) +BUILD_NUMBER?=1 +BASEIMG=linaro-saucy-developer +IMAGEPREFIX=$(BASEIMG)-`date +%Y%m%d`-$(BUILD_NUMBER) LOGFILE=$(IMAGEPREFIX).build-log.txt CONFIGFILE=$(IMAGEPREFIX).config.tar.bz2 LISTFILE=$(IMAGEPREFIX).contents @@ -29,4 +31,5 @@ all: clean: sudo lb clean --purge - rm -f $(IMAGEPREFIX).* + rm -f $(BASEIMG)-* + rm -rf config |