ltp/makefile: rm the ltp.zip file after unzipped

the ltp.zip file is not tracked in git record, so after download and
unzip finished, we do not need to keep this ltp.zip file.

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
guoshichao 2023-09-08 10:41:26 +08:00 committed by Xiang Xiao
parent a9f0fc55d1
commit b7e08d4fba

View File

@ -276,6 +276,7 @@ ltp-$(LTPS_VERSION).zip:
$(LTP_UNPACK): ltp-$(LTPS_VERSION).zip $(LTP_UNPACK): ltp-$(LTPS_VERSION).zip
$(Q) echo "dowload $(LTP_DOWNLOAD_URL)$(LTPS_VERSION).zip" $(Q) echo "dowload $(LTP_DOWNLOAD_URL)$(LTPS_VERSION).zip"
$(Q) unzip -o ltp.zip $(Q) unzip -o ltp.zip
$(Q) rm -f ltp.zip
$(Q) mv ltp-$(LTPS_VERSION) $(LTP_UNPACK) $(Q) mv ltp-$(LTPS_VERSION) $(LTP_UNPACK)
$(Q) patch -d $(LTP_UNPACK) -p1 < 0001-pthread_rwlock_unlock-follow-linux.patch $(Q) patch -d $(LTP_UNPACK) -p1 < 0001-pthread_rwlock_unlock-follow-linux.patch
$(Q) patch -d $(LTP_UNPACK) -p1 < 0002-Use-ifdef-instead-of-if-for-__linux__.patch $(Q) patch -d $(LTP_UNPACK) -p1 < 0002-Use-ifdef-instead-of-if-for-__linux__.patch