Skip to content

curl-impersonate: A special build of curl that can impersonate Chrome & Firefox

Add option to strip binaries before installation

lwthiker201a5472efee
diff --git a/Makefile.in b/Makefile.in
index c9e13aa..3d4aaa0 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -64,9 +64,19 @@ firefox-install: ## Install the Firefox version of curl-impersonate after build
cd $(CURL_VERSION)
$(MAKE) install-exec MAKEFLAGS=
# Wrapper scripts for the Firefox version (e.g. 'curl_ff98')
- cp -f $(srcdir)/firefox/curl_ff* @bindir@
+ install $(srcdir)/firefox/curl_ff* @bindir@
.PHONY: firefox-install
+firefox-install-strip: ## Like 'firefox-install', but strip binaries for smaller size
+ cd $(CURL_VERSION)
+ $(MAKE) install-exec MAKEFLAGS=
+ # We could have used 'install-strip' but then the docs would be installed as well.
+ # Instead strip manually.
+ strip @bindir@/curl-impersonate-ff
+ # Wrapper scripts for the Firefox version (e.g. 'curl_ff98')
+ install $(srcdir)/firefox/curl_ff* @bindir@
+.PHONY: firefox-install-strip
+
firefox-uninstall: ## Uninstall the Firefox version of curl-impersonate after 'make install'
cd $(CURL_VERSION)
$(MAKE) uninstall MAKEFLAGS=
@@ -99,9 +109,19 @@ chrome-install: ## Install the Chrome version of curl-impersonate after build
cd $(CURL_VERSION)
$(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@
+ install $(srcdir)/chrome/curl_chrome* $(srcdir)/chrome/curl_edge* $(srcdir)/chrome/curl_safari* @bindir@
.PHONY: chrome-install
+chrome-install-strip: ## Like 'chrome-install', but strip binaries for smaller size
+ cd $(CURL_VERSION)
+ $(MAKE) install-exec MAKEFLAGS=
+ # We could have used 'install-strip' but then the docs would be installed as well.
+ # Instead strip manually.
+ strip @bindir@/curl-impersonate-chrome
+ # Wrapper scripts for the Chrome version (e.g. 'curl_chrome99')
+ install $(srcdir)/chrome/curl_chrome* $(srcdir)/chrome/curl_edge* $(srcdir)/chrome/curl_safari* @bindir@
+.PHONY: chrome-install-strip
+
chrome-uninstall: ## Uninstall the Chrome version of curl-impersonate after 'make install'
cd $(CURL_VERSION)
$(MAKE) uninstall MAKEFLAGS=