TOOL=hakusan
VERSION = 0.13

all:
	cabal build
	cp `cabal list-bin $(TOOL)` .

clean:
	cabal clean
	rm -f *.hi *.o $(TOOL) $(TOOL)-static

archive:
	git archive --format=tar --prefix=$(TOOL)/ HEAD | gzip > $(TOOL)-$(VERSION).tgz

static:
	docker build --output type=local,dest=. -t $(TOOL)-static .
