DB=$(shell cat config.json | jq '.Database') all: kill build start build: go build . kill: -kill $$(cat pid) -rm -f pid start: ./lastfm-api & echo $$! > pid watch: watchman-make -p '*.go' 'templates/*.tmpl' -t all up: goose -dir migrations postgres $(DB) up down: goose -dir migrations postgres $(DB) down status: goose -dir migrations postgres $(DB) status