wynn/Makefile

11 lines
264 B
Makefile
Raw Normal View History

2025-03-03 00:18:02 +00:00
.PHONY: migrate tern
migrate: $(shell find migrations -type f -name "*.sql")
$(MAKE) tern ARGS="migrate"
2025-03-03 04:39:51 +00:00
tern:
@echo "running tern $(ARGS)"
@cd migrations && PGUSER=postgres PGPASSWORD=postgres PGHOST=127.0.0.1 PGPORT=54327 PGDATABASE=postgres tern $(ARGS)