TOOL=tool
VERSION = 0.1

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:
	ghc -O -Wall -optl=-fuse-ld=bfd -optl=-static -o hakusan Main
