Skip to content

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

Add Makefile uninstall targets

lwthiker4e102d1fbfdb
diff --git a/Makefile.in b/Makefile.in
index cc26187..465523d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -55,6 +55,12 @@ firefox-install: ## Install the Firefox version of curl-impersonate after build
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=
+ 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
@@ -68,7 +74,13 @@ chrome-install: ## Install the Chrome version of curl-impersonate after build
cp -f $(srcdir)/chrome/curl_chrome* $(srcdir)/chrome/curl_edge* $(srcdir)/chrome/curl_safari* @bindir@
.PHONY: chrome-install
-clean: ## Remove all build artifacts
+chrome-uninstall: ## Uninstall the Chrome version of curl-impersonate after 'make install'
+ cd $(CURL_VERSION)
+ make uninstall MAKEFLAGS=
+ rm -Rf @bindir@/curl_chrome* @bindir@/curl_edge* @bindir@/curl_safari*
+.PHONY: chrome-uninstall
+
+clean: ## Remove build artifacts
rm -Rf brotli-$(BROTLI_VERSION).tar.gz brotli-$(BROTLI_VERSION)
rm -Rf $(NSS_VERSION).tar.gz $(NSS_VERSION)
rm -Rf boringssl.zip boringssl