Files
LazyPM/Makefile
Robin Olsen f96d9527a6 remove watch make command as it was not working
add commet for clarity
2026-02-13 13:49:00 +01:00

60 lines
1.3 KiB
Makefile

SHELL := /bin/bash
tidy:
go mod tidy
clean:
go clean
build:
go build -o ./bin/pm ./cmd/pm
go build -o ./bin/tui ./cmd/tui
go build -o ./bin/web ./cmd/web
cli:
go run ./cmd/pm
tui:
go run ./cmd/tui
web:
go run ./cmd/web
# Run both dev and tw in parallel for generating templates and compiling Tailwind CSS on file changes
dev:
@go tool templ generate -watch -cmd "go run ./cmd/web"
tw:
@npx --yes @tailwindcss/cli -i ./pkg/web/input.css -o ./pkg/web/assets/css/styles.css --watch
completions:
@go build -o ./bin/pm ./cmd/pm
@mkdir -p ./bin
@./bin/pm completion bash > ./bin/pm_bash.sh
@./bin/pm completion zsh > ./bin/pm_zsh.sh
@./bin/pm completion fish > ./bin/pm_fish.sh
@./bin/pm completion powershell > ./bin/pm_powershell.ps1
install-bash-temp: completions
@go install ./cmd/pm
@source ./bin/pm_bash.sh
install-zsh-temp: completions
@go install ./cmd/pm
@source ./bin/pm_zsh.sh
install-fish-temp: completions
@go install ./cmd/pm
@source ./bin/pm_fish.sh
install-powershell-temp: completions
@go install ./cmd/pm
@source ./bin/pm_powershell.ps1
install-cli: completions
@go install ./cmd/pm
@sudo cp ./bin/pm_bash.sh /etc/bash_completion.d/pm
.PHONY: tidy clean build cli tui web dev tw completions install-bash-temp install-zsh-temp install-fish-temp install-powershell-temp install-cli