Revision ef53b4b2 Makefile

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

  
......
13 14

  
14 15
all: $(HPROGS)
15 16

  
16
$(HPROGS): %: %.hs Ganeti/HTools/Version.hs $(HSRCS) Makefile
17
$(HALLPROGS): %: %.hs Ganeti/HTools/Version.hs $(HSRCS) Makefile
17 18
	ghc --make $(HFLAGS) $(HEXTRA) $@
18 19

  
20
test: HEXTRA=-fhpc
21

  
19 22
$(DOCS) : %.html : %
20 23
	rst2html $< $@
21 24

  
......
38 41
	rm -f $(DOCS) TAGS version Ganeti/HTools/Version.hs
39 42

  
40 43
clean:
41
	rm -f $(HPROGS)
44
	rm -f $(HALLPROGS)
42 45
	rm -f *.o *.prof *.ps *.stat *.aux *.hi
43 46
	cd Ganeti/HTools && rm -f *.o *.prof *.ps *.stat *.aux *.hi
44 47

  
......
58 61
	gzip -v9 $$ANAME ; \
59 62
	tar tzvf $$ANAME.gz
60 63

  
61
check:
62
	rm -f *.tix *.mix test
63
	$(MAKE) HEXTRA=-fhpc test
64
check: test
65
	rm -f *.tix *.mix
64 66
	./test
65 67
ifeq ($(T),markup)
66 68
	mkdir -p coverage

Also available in: Unified diff