Add Makefile uninstall targets

Add two targets for uninstalling curl-impersonate to the Makefile.
This commit is contained in:
lwthiker
2022-04-12 12:29:47 +03:00
parent 7e19dd7221
commit 4e102d1fbf
+13 -1
View File
@@ -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