mirror of
https://github.com/lwthiker/curl-impersonate.git
synced 2025-08-09 05:09:36 +00:00
Add option to strip binaries before installation
And use 'install' instead of 'cp' for installing the wrapper scripts.
This commit is contained in:
24
Makefile.in
24
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=
|
||||
|
Reference in New Issue
Block a user