16e4dca2d77a84e6e1c802dae3d1fdc14e748a47

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Add templ as makefile target

Diff

 1diff --git a/Makefile b/Makefile
 2index 7767164acc2c19acb6762431d854d0cbee23fca3..56dfd5cb2f82d83d889c070535ba68192988f78e 100644
 3--- a/Makefile
 4+++ b/Makefile
 5@@ -1,4 +1,4 @@
 6-.PHONY: all setup ytrssil-api build gen-mocks lint yamllint test migrate image-build image-push
 7+.PHONY: all lint test air templ build gen-mocks migrate image-build
 8 
 9 DB_URI ?= postgres://ytrssil:ytrssil@localhost:5432/ytrssil?sslmode=disable
10 
11@@ -23,8 +23,10 @@ test:
12 air: bin/air
13 	@./bin/air -c .air.toml
14 
15-build:
16+templ:
17 	templ generate
18+
19+build: templ
20 	go build -o dist/ytrssil ./cmd/main.go
21 
22 gen-mocks: bin/moq