servant-quickcheck/doc/posts/Makefile
2016-05-01 14:29:47 +02:00

23 lines
424 B
Makefile

FILES = src/Main.hs src/Spec.hs src/schema.sql
src/$(FILES): Announcement.anansi
anansi tangle -o "src" Announcement.anansi
announcement.md: Announcement.anansi
anansi weave -o "announcement.md" Announcement.anansi
.stack-work/bin/posts: $(FILES) stack.yaml posts.cabal
stack build
run: .stack-work/bin/posts
stack exec posts
test: .stack-work/bin/posts
stack test
post: announcement.md
.PHONY: post run test