Revision 49148d15 Makefile

b/Makefile
1 1
HPROGS = hbal hscan hail hspace
2
MANS = $(HPROGS:%=man/%.1)
2 3
HALLPROGS = $(HPROGS) test
3 4
HSRCS := $(wildcard Ganeti/HTools/*.hs) $(wildcard Ganeti/*.hs)
4 5
HDDIR = apidoc
......
13 14

  
14 15
# Haskell rules
15 16

  
16
all: $(HPROGS)
17
all: $(HPROGS) $(MANS)
18

  
17 19

  
18 20
$(HALLPROGS): %: %.hs Ganeti/HTools/Version.hs $(HSRCS) Makefile
19 21
	$(GHC) --make $(HFLAGS) $(HEXTRA) $@
......
23 25
	-fno-warn-missing-methods -fno-warn-unused-imports
24 26

  
25 27
$(DOCS) : %.html : %
26
	rst2html -v --strict $< $@
28
	pandoc -f rst -t html -o $@ $<
29

  
30
%.1: %.rst
31
	pandoc -s -f rst -t man -o $@ $<
27 32

  
28 33
doc: $(DOCS) Ganeti/HTools/Version.hs
29 34
	rm -rf $(HDDIR)/*
......
72 77
	rm -f $$ANAME $$ANAME.gz ; \
73 78
	git archive --format=tar --prefix=$$PFX/ HEAD > $$ANAME ; \
74 79
	tar -r -f $$ANAME --owner root --group root \
75
	    --transform="s,^,$$PFX/," version apidoc $(DOCS) ; \
80
	    --transform="s,^,$$PFX/," version apidoc $(DOCS) $(MANS); \
76 81
	gzip -v9 $$ANAME ; \
77 82
	TMPDIR=$$(mktemp -d) ; \
78 83
	tar xzf $$ANAME.gz -C $$TMPDIR; \

Also available in: Unified diff