diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2012-11-07 23:13:01 +0100 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2012-11-07 23:13:01 +0100 |
commit | 3cbafc5fa62e5a858783f982f7994f1be08e4087 (patch) | |
tree | ce857f787715ba0eb06349b07d97ed7d013b97cd /mk/linux.mk | |
parent | 3dbf12c0c65dba94d682a3be0f7c2bcd6175f47a (diff) | |
download | embtoolkit-3cbafc5fa62e5a858783f982f7994f1be08e4087.tar.gz embtoolkit-3cbafc5fa62e5a858783f982f7994f1be08e4087.tar.bz2 embtoolkit-3cbafc5fa62e5a858783f982f7994f1be08e4087.tar.xz |
Toolchain: linux headers: fix clean macro
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'mk/linux.mk')
-rw-r--r-- | mk/linux.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/linux.mk b/mk/linux.mk index b81b8f9..22f4cd6 100644 --- a/mk/linux.mk +++ b/mk/linux.mk @@ -75,7 +75,8 @@ download_linux download_linux_headers: # clean target and macros # define embtk_cleanup_linux - if [ -d $(LINUX_BUILD_DIR) ]; then \ + if [ -d $(LINUX_BUILD_DIR) ] && \ + [ -e $(call __embtk_pkg_dotinstalled_f,linux_headers) ]; then \ $(MAKE) -C $(LINUX_BUILD_DIR) distclean; \ rm -rf $$(call __embtk_pkg_dotinstalled_f,linux_headers); \ fi |