Since ghc won't trigger recompilation due to the -fhpc flag, it's not
useful to rm && make test, as this will only relink the binary.
Therefore we simplify this rule.
-HPROGS = hbal hn1 hscan hail test
+HPROGS = hbal hn1 hscan hail
+HALLPROGS = $(HPROGS) test
HSRCS := $(wildcard Ganeti/HTools/*.hs)
HDDIR = apidoc
all: $(HPROGS)
-$(HPROGS): %: %.hs Ganeti/HTools/Version.hs $(HSRCS) Makefile
+$(HALLPROGS): %: %.hs Ganeti/HTools/Version.hs $(HSRCS) Makefile
ghc --make $(HFLAGS) $(HEXTRA) $@
+test: HEXTRA=-fhpc
+
$(DOCS) : %.html : %
rst2html $< $@
rm -f $(DOCS) TAGS version Ganeti/HTools/Version.hs
clean:
- rm -f $(HPROGS)
+ rm -f $(HALLPROGS)
rm -f *.o *.prof *.ps *.stat *.aux *.hi
cd Ganeti/HTools && rm -f *.o *.prof *.ps *.stat *.aux *.hi
gzip -v9 $$ANAME ; \
tar tzvf $$ANAME.gz
-check:
- rm -f *.tix *.mix test
- $(MAKE) HEXTRA=-fhpc test
+check: test
+ rm -f *.tix *.mix
./test
ifeq ($(T),markup)
mkdir -p coverage