# This Makefile is mostly a wrapper around Setup.hs for people who
# just want to type make.

all: build

# remove 'haddock' if you module does not provide haddock documentation
doc: haddock
  # Add additional rules for documentation generation here

configure: .setup-config
.setup-config:
	chmod ugo+x ./Setup.hs; ./Setup.hs configure

build: configure
	runhaskell Setup.hs build

install: build
	runhaskell Setup.hs install

test:
	runhaskell -itests tests/Main.hs

dist:
	runhaskell Setup.hs sdist

haddock: configure
	runhaskell Setup.hs haddock

clean:
	-runhaskell Setup.hs clean
	-rm -rf dist
#	$(MAKE) -C test clean

.PHONY: all configure build install dist haddock doc clean
