From 4e102d1fbfdbd8837c385cf50518205d94cf1af1 Mon Sep 17 00:00:00 2001 From: lwthiker Date: Tue, 12 Apr 2022 11:36:13 +0300 Subject: [PATCH] Add Makefile uninstall targets Add two targets for uninstalling curl-impersonate to the Makefile. --- Makefile.in | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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