gostart/Makefile

23 lines
560 B
Makefile
Raw Normal View History

2023-05-18 12:54:16 -06:00
all: sqlc elm build
2022-12-21 19:28:49 -07:00
check:
go vet ./...
staticcheck ./...
2023-05-18 12:54:16 -06:00
elm: src/Main.elm
2023-06-12 08:02:09 -06:00
elm make src/Main.elm --optimize --output=assets/main.js
uglifyjs assets/main.js --compress 'pure_funcs=[F2,F3,F4,F5,F6,F7,F8,F9,A2,A3,A4,A5,A6,A7,A8,A9],pure_getters,keep_fargs=false,unsafe_comps,unsafe' | uglifyjs --mangle --output assets/main.min.js
rm -f assets/main.js
2022-12-21 19:28:49 -07:00
sqlc: queries.sql schema.sql
sqlc generate
build:
go build
2023-05-18 13:10:25 -06:00
watch:
echo src/Main.elm | entr -r elm make src/Main.elm --output=assets/main.js
run: sqlc build
./gostart -name startdev -db ./test.db