Don't download tarballs if a local git repo found

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi 2022-08-27 14:15:16 +08:00 committed by Xiang Xiao
parent 35c31e35c1
commit 2e2630e838
25 changed files with 91 additions and 15 deletions

View file

@ -103,10 +103,13 @@ $(LIBTOMMATH_UNPACKNAME): $(LIBTOMMATH_ZIP)
$(Q) mv libtommath-$(LIBTOMMATH_VERSION) $(LIBTOMMATH_UNPACKNAME)
$(Q) touch $(LIBTOMMATH_UNPACKNAME)
# Download and unpack tarball if no git repo found
ifeq ($(wildcard $(LIBTOMMATH_UNPACKNAME)/.git),)
context:: $(LIBTOMMATH_UNPACKNAME)
distclean::
$(call DELDIR, $(LIBTOMMATH_UNPACKNAME))
$(call DELFILE, $(LIBTOMMATH_ZIP))
endif
include $(APPDIR)/Application.mk