@@ -77,7 +77,7 @@ run: build ## Build and run the binary
7777.PHONY : clean
7878clean : # # Remove artifacts and temporary files
7979 $(ECHO ) " Cleaning up..."
80- @$(GO ) clean -cache -testcache -modcache
80+ @$(GO ) clean # -cache -testcache -modcache
8181 @find . -type f -name ' *.got.*' -delete
8282 @find . -type f -name ' *.out' -delete
8383 @find . -type f -name ' *.snap' -delete
@@ -100,7 +100,7 @@ install-snap: ## Install Snap (for Debian-based systems)
100100install-deps : # # Install development dependencies (for Debian-based systems)
101101 $(ECHO ) " Installing dependencies..."
102102 @sudo apt-get install -y make libgl1-mesa-dev libx11-dev xorg-dev \
103- libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev pkg-config
103+ libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev pkg-config libasound2-dev
104104 @$(MAKE ) install-snap
105105 @sudo snap install go --classic
106106 @sudo snap install golangci-lint --classic
@@ -139,15 +139,17 @@ release-macos: ## Build release binary for macOS (v14 and newer; arm64)
139139 echo " Build complete: $( BINARY) "
140140
141141.PHONY : setup-hooks
142- setup-hooks : # # Set up pre-commit hooks
143- @echo " Setting up pre-commit hooks..."
142+ setup-hooks : # # Install Git hooks ( pre-commit and pre-push)
143+ @echo " Setting up Git hooks..."
144144 @if ! command -v pre-commit & > /dev/null; then \
145145 echo " pre-commit not found. Please install it using 'pip install pre-commit'" ; \
146146 exit 1; \
147147 fi
148- @pre-commit install --install-hooks
148+ @pre-commit install --hook-type pre-commit
149+ @pre-commit install --hook-type pre-push
150+ @pre-commit install-hooks
149151
150152.PHONY : test-hooks
151- test-hooks : # # Test pre-commit hooks on all files
152- @echo " Testing pre-commit hooks..."
153- @pre-commit run --all-files
153+ test-hooks : # # Test Git hooks on all files
154+ @echo " Testing Git hooks..."
155+ @pre-commit run --all-files --show-diff-on-failure
0 commit comments