Skip to content

Commit

Permalink
use curl to instead of wget in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
simpleton committed Nov 14, 2023
1 parent 6b04353 commit 852d926
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion projects/buck2/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $(HOST_OUT_DIR)/bin/buck2: $(DOWNLOADS_DIR)/$(BUCK2_ARCHIVE) | $(HOST_OUT_DIR)

$(DOWNLOADS_DIR)/$(BUCK2_ARCHIVE): | $(DOWNLOADS_DIR)
# instructions to download the archive
wget -q -O $@ $(BUCK2_URL)
curl -L -s -o $@ $(BUCK2_URL)

# Phony target for host
.PHONY: buck2-host
Expand Down
2 changes: 1 addition & 1 deletion projects/cmake/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ $(CMAKE_HOST_BUILD_DIR):
CMAKE_VERSION = 3.22.2
CMAKE_URL = https://github.com/Kitware/CMake/releases/download/v$(CMAKE_VERSION)/cmake-$(CMAKE_VERSION).tar.gz
$(DOWNLOADS_DIR)/cmake-$(CMAKE_VERSION).tar.gz: | $(DOWNLOADS_DIR)
cd $(DOWNLOADS_DIR) && wget $(CMAKE_URL)
cd $(DOWNLOADS_DIR) && curl -L -O $(CMAKE_URL)

projects/cmake/sources: $(DOWNLOADS_DIR)/cmake-$(CMAKE_VERSION).tar.gz
-mkdir $@
Expand Down
2 changes: 1 addition & 1 deletion projects/elfutils/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ $(ANDROID_BUILD_DIR)/elfutils: $(ANDROID_OUT_DIR)/lib/pkgconfig/zlib.pc
ELFUTILS_VERSION = 0.186
ELFUTILS_URL = http://sourceware.org/pub/elfutils/$(ELFUTILS_VERSION)/elfutils-$(ELFUTILS_VERSION).tar.bz2
projects/elfutils/sources: | $(DOWNLOADS_DIR)
wget $(ELFUTILS_URL) -O $(DOWNLOADS_DIR)/elfutils-$(ELFUTILS_VERSION).tar.bz2
curl -L $(ELFUTILS_URL) -o $(DOWNLOADS_DIR)/elfutils-$(ELFUTILS_VERSION).tar.bz2
-mkdir $@
tar xf $(DOWNLOADS_DIR)/elfutils-$(ELFUTILS_VERSION).tar.bz2 -C $@ \
--transform="s|^elfutils-$(ELFUTILS_VERSION)||"
2 changes: 1 addition & 1 deletion projects/licenses.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

LGPL_URL := https://www.gnu.org/licenses/lgpl-3.0.txt

fetch-license = wget $($(2)_URL) -O $(ANDROID_OUT_DIR)/licenses/$(1)
fetch-license = curl -L $($(2)_URL) -o $(ANDROID_OUT_DIR)/licenses/$(1)

0 comments on commit 852d926

Please sign in to comment.