Skip to content

Commit

Permalink
build: add uninstall target (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvsrgc authored Dec 3, 2023
1 parent b39261c commit 43db2c4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ upgrade: ## Upgrade all dependencies to the latest stable versio
@$(ENV_PREFIX)pre-commit autoupdate
@echo "=> Updated Pre-commit"

.PHONY: uninstall
uninstall:
@echo "=> Uninstalling PDM"
ifeq ($(OS),Windows_NT)
@echo "=> Removing PDM from %APPDATA%\Python\Scripts"
@if exist "%APPDATA%\Python\Scripts\pdm" (del "%APPDATA%\Python\Scripts\pdm")
else
@echo "=> Removing PDM from ~/.local/bin"
@rm -f ~/.local/bin/pdm
endif
@echo "=> PDM removal complete"
@echo "=> Uninstallation complete!"

# =============================================================================
# Developer Utils
Expand Down

0 comments on commit 43db2c4

Please sign in to comment.