--- a/Makefile +++ b/Makefile @@ -5,29 +5,13 @@ PYTHON ?= python3 PIP ?= $(PYTHON) -m pip # this is the upstream libcurl-impersonate version -VERSION := 2.2.2 -CURL_VERSION := curl-8_21_0 +VERSION := @CURL_IMPERSONATE_VERSION@ +CURL_VERSION := @CURL_VERSION@ -ifeq ($(OS),Windows_NT) - CURRENT_USER := $(shell echo %USERNAME%) -else - CURRENT_USER := $(shell whoami) -endif - -$(CURL_VERSION): - curl -L https://github.com/curl/curl/archive/$(CURL_VERSION).zip -o curl.zip - unzip -q -o curl.zip - mv curl-$(CURL_VERSION) $(CURL_VERSION) - -curl-impersonate-$(VERSION)/patches: $(CURL_VERSION) - curl -L "https://github.com/lexiforest/curl-impersonate/archive/refs/tags/v$(VERSION).tar.gz" \ - -o "curl-impersonate-$(VERSION).tar.gz" - tar -xf curl-impersonate-$(VERSION).tar.gz - -.preprocessed: curl-impersonate-$(VERSION)/patches +.preprocessed: cd $(CURL_VERSION) # for p in $