real-default: default


fixme:
	find . -path "./_darcs" -prune -o -type f -name "*.hs" -print0 | xargs -0 -e grep -ni -e fixme

# Put automatic haddock comments in Properties.hs
fixup:
	make -C tools
	tools/annotateProps <Data/Collections/Properties.hs >tmp
	mv tmp Data/Collections/Properties.hs

interactive:
	ghci -Iinclude -cpp Data/Collections.hs

all: install

default: build

clean: 
	runhaskell Setup.hs clean
	make -C tests clean
	make -C benchmark clean
	find . -name "*.o" -o -name "*.hi" -exec rm {} \;

configure .setup-config:
	-mkdir inst
	runhaskell Setup.hs configure --enable-library-profiling --user --prefix=$(shell pwd)/inst

build: .setup-config
	runhaskell Setup.hs build

install: build
	runhaskell Setup.hs install --user

test:
	make -C tests

bench:
	make -C benchmark

doc:
	runhaskell Setup.hs haddock

