From a6c4fa6ac1134d822cbd5decc7600b6b2feba12b Mon Sep 17 00:00:00 2001 From: lwthiker Date: Sun, 17 Apr 2022 14:50:53 +0300 Subject: [PATCH] Use $(MAKE) instead of 'make' in Makefile.in To support platforms where 'make' is named differently (e.g. on MacOS we use 'gmake' instead), replace it with '$(MAKE)' in Makefile.in --- Makefile.in | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Makefile.in b/Makefile.in index 2ba2d3d..e21b046 100644 --- a/Makefile.in +++ b/Makefile.in @@ -45,38 +45,38 @@ help: ## Show this help message firefox-build: $(CURL_VERSION)/.firefox ## Build the Firefox version of curl-impersonate cd $(CURL_VERSION) # Don't pass this Makefile's MAKEFLAGS - make MAKEFLAGS= + $(MAKE) MAKEFLAGS= .PHONY: firefox-build firefox-install: ## Install the Firefox version of curl-impersonate after build cd $(CURL_VERSION) - make install-exec MAKEFLAGS= + $(MAKE) install-exec MAKEFLAGS= # Wrapper scripts for the Firefox version (e.g. 'curl_ff98') cp -f $(srcdir)/firefox/curl_ff* @bindir@ .PHONY: firefox-install firefox-uninstall: ## Uninstall the Firefox version of curl-impersonate after 'make install' cd $(CURL_VERSION) - make uninstall MAKEFLAGS= + $(MAKE) uninstall MAKEFLAGS= rm -Rf @bindir@/curl_ff* .PHONY: firefox-uninstall chrome-build: $(CURL_VERSION)/.chrome ## Build the Chrome version of curl-impersonate cd $(CURL_VERSION) # Don't pass this Makefile's MAKEFLAGS - make MAKEFLAGS= + $(MAKE) MAKEFLAGS= .PHONY: chrome-build chrome-install: ## Install the Chrome version of curl-impersonate after build cd $(CURL_VERSION) - make install-exec MAKEFLAGS= + $(MAKE) install-exec MAKEFLAGS= # Wrapper scripts for the Chrome version (e.g. 'curl_chrome99') cp -f $(srcdir)/chrome/curl_chrome* $(srcdir)/chrome/curl_edge* $(srcdir)/chrome/curl_safari* @bindir@ .PHONY: chrome-install chrome-uninstall: ## Uninstall the Chrome version of curl-impersonate after 'make install' cd $(CURL_VERSION) - make uninstall MAKEFLAGS= + $(MAKE) uninstall MAKEFLAGS= rm -Rf @bindir@/curl_chrome* @bindir@/curl_edge* @bindir@/curl_safari* .PHONY: chrome-uninstall @@ -150,8 +150,8 @@ $(NGHTTP2_VERSION)/.patched: $(srcdir)/firefox/patches/libnghttp2-*.patch $(nghttp2_static_libs): $(NGHTTP2_VERSION).tar.bz2 $(NGHTTP2_VERSION)/.patched cd $(NGHTTP2_VERSION) ./configure --prefix=$(nghttp2_install_dir) --with-pic - make MAKEFLAGS= - make install MAKEFLAGS= + $(MAKE) MAKEFLAGS= + $(MAKE) install MAKEFLAGS= $(CURL_VERSION).tar.xz: curl -L "https://curl.se/download/$(CURL_VERSION).tar.xz" \ @@ -190,7 +190,7 @@ $(CURL_VERSION)/.firefox: $(firefox_libs) $(CURL_VERSION).tar.xz $(CURL_VERSION) USE_CURL_SSLKEYLOGFILE=true \ CFLAGS="-I$(nss_install_dir)/../public/nss -I$(nss_install_dir)/include/nspr" # Remove possible leftovers from a previous compilation - make clean MAKEFLAGS= + $(MAKE) clean MAKEFLAGS= touch .firefox # Remove the Chrome flag if it exists rm -f .chrome @@ -207,7 +207,7 @@ $(CURL_VERSION)/.chrome: $(chrome_libs) $(CURL_VERSION).tar.xz $(CURL_VERSION)/. LIBS="-pthread" \ CFLAGS="-I$(boringssl_install_dir)" # Remove possible leftovers from a previous compilation - make clean MAKEFLAGS= + $(MAKE) clean MAKEFLAGS= touch .chrome # Remove the Firefox flag if it exists rm -f .firefox