SRCS := $(shell find src/ -type f -name '*.hs')
BINS = $(patsubst src%.hs, dist/build%.o, $(SRCS))
-.PHONY : dist hlint
+.PHONY : dist doc hlint
$(BINS): $(PN).cabal $(SRCS)
echo $(BINS)
--prefix=/
runghc Setup.hs build
-doc: $(PN).cabal $(SRCS)
+doc:
runghc Setup.hs configure --user --prefix=/
runghc Setup.hs hscolour --executables
runghc Setup.hs haddock --internal \