TOOL=hakusan
VERSION = 0.12

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

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

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

static:
	docker build --output type=local,dest=. -t hakusan-static .
