fix(ci): make command
I hate github actions soooo much
This commit is contained in:
9
makefile
9
makefile
@@ -37,8 +37,13 @@ bin/www: main.go templ
|
||||
bin/vercel: cmd/vercel/main.go templ
|
||||
go build -o ./bin/vercel ./cmd/vercel/main.go
|
||||
|
||||
templ:
|
||||
templ generate
|
||||
# For some reason "templ generate" does not detect the files, so this is a
|
||||
# workaround.
|
||||
TEMPL_FILES=$(patsubst %.templ, %_templ.go, $(wildcard **/*.templ))
|
||||
templ: $(TEMPL_FILES)
|
||||
@echo Generating templ files
|
||||
%_templ.go: %.templ
|
||||
templ generate -f $^ > /dev/null
|
||||
|
||||
clean:
|
||||
if [[ -d "dist" ]]; then rm -r ./dist; fi
|
||||
|
||||
Reference in New Issue
Block a user