Remove target directory prior to extraction.

This commit is contained in:
Jeffrey Townsend
2019-04-24 17:25:42 +00:00
parent d81705fbab
commit f2c23181b4

View File

@@ -123,7 +123,7 @@ $(K_ARCHIVE_PATH):
# The extracted kernel sources
#
$(K_SOURCE_DIR)/Makefile: $(K_ARCHIVE_PATH)
mkdir -p $(K_TARGET_DIR) && cd $(K_TARGET_DIR) && tar kxf $(K_ARCHIVE_PATH)
rm -rf $(K_TARGET_DIR) && mkdir -p $(K_TARGET_DIR) && cd $(K_TARGET_DIR) && tar kxf $(K_ARCHIVE_PATH)
touch -c $(K_SOURCE_DIR)/Makefile
$(K_MAKE) mrproper