Statistics
| Branch: | Tag: | Revision:

root / Makefile @ e4f08c46

History | View | Annotate | Download (737 Bytes)

1
HSRCS := $(wildcard src/*.hs)
2
HDDIR = apidoc
3

    
4
# Haskell rules
5

    
6
all:
7
	$(MAKE) -C src
8

    
9
README.html: README
10
	rst2html $< $@
11

    
12
doc: README.html
13
	rm -rf $(HDDIR)
14
	mkdir -p $(HDDIR)/src
15
	cp hscolour.css $(HDDIR)/src
16
	for file in $(HSRCS); do \
17
        HsColour -css -anchor \
18
        $$file > $(HDDIR)/src/`basename $$file .hs`.html ; \
19
    done
20
	ln -sf hn1.html $(HDDIR)/src/Main.html
21
	haddock --odir $(HDDIR) --html --ignore-all-exports \
22
	    -t hn1 -p haddock-prologue \
23
        --source-module="src/%{MODULE/.//}.html" \
24
        --source-entity="src/%{MODULE/.//}.html#%{NAME}" \
25
	    $(HSRCS)
26

    
27
clean:
28
	rm -f *.o *.cmi *.cmo *.cmx *.old hn1 zn1 *.prof *.ps *.stat *.aux \
29
        gmon.out *.hi README.html TAGS
30

    
31
.PHONY : all doc clean hn1