personal-site/Makefile
Dimitri Balios c244389971
Update Makefile (#80)
ent install -d flag is deprecated. -d=true is a no-op
2024-09-18 17:06:54 -04:00

30 lines
538 B
Makefile

# Install Ent code-generation module
.PHONY: ent-install
ent-install:
go get entgo.io/ent/cmd/ent
# Generate Ent code
.PHONY: ent-gen
ent-gen:
go generate ./ent
# Create a new Ent entity
.PHONY: ent-new
ent-new:
go run entgo.io/ent/cmd/ent new $(name)
# Run the application
.PHONY: run
run:
clear
go run cmd/web/main.go
# Run all tests
.PHONY: test
test:
go test -count=1 -p 1 ./...
# Check for direct dependency updates
.PHONY: check-updates
check-updates:
go list -u -m -f '{{if not .Indirect}}{{.}}{{end}}' all | grep "\["