23 lines
421 B
Makefile
23 lines
421 B
Makefile
go := require("go")
|
|
templ := require("templ")
|
|
air := require("air")
|
|
|
|
templ:
|
|
templ generate
|
|
|
|
prebuild: templ
|
|
|
|
run: prebuild
|
|
go run main.go
|
|
|
|
build: prebuild
|
|
mkdir bin
|
|
go build -o ./bin/gpx-downloader main.go
|
|
|
|
watch:
|
|
CI=1 CLICOLOR_FORCE=1 air \
|
|
--build.cmd "just build" \
|
|
--build.bin "./bin/gpx-downloader" \
|
|
-build.include_ext "go,templ" \
|
|
--build.exclude_dir "data,bin" \
|
|
--build.exclude_regex "_templ.go"
|