Don't build documentation for the Main modules
authorIustin Pop <iustin@google.com>
Sun, 22 Feb 2009 12:20:00 +0000 (13:20 +0100)
committerIustin Pop <iustin@google.com>
Sun, 22 Feb 2009 12:20:00 +0000 (13:20 +0100)
This fixes the doc issue which exists since the addition of hbal. Now
make doc makes sense again.

Makefile

index a4ef134..a5c06cc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
-HSRCS := $(wildcard src/*.hs)
+HPROGS = hbal hn1
+HSRCS := $(filter-out $(HPROGS), $(wildcard src/*.hs))
 HDDIR = apidoc
 
 # Haskell rules
@@ -17,9 +18,8 @@ doc: README.html
         HsColour -css -anchor \
         $$file > $(HDDIR)/src/`basename $$file .hs`.html ; \
     done
-       ln -sf hn1.html $(HDDIR)/src/Main.html
        haddock --odir $(HDDIR) --html --ignore-all-exports \
-           -t hn1 -p haddock-prologue \
+           -t htools -p haddock-prologue \
         --source-module="src/%{MODULE/.//}.html" \
         --source-entity="src/%{MODULE/.//}.html#%{NAME}" \
            $(HSRCS)