From ef53b4b27885a5064b497f24ec7e4aed2fc0fbea Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Fri, 29 May 2009 09:42:01 +0100 Subject: [PATCH] Change the check rule in Makefile 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. --- Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index be3c899c7..3b2df00f8 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ -HPROGS = hbal hn1 hscan hail test +HPROGS = hbal hn1 hscan hail +HALLPROGS = $(HPROGS) test HSRCS := $(wildcard Ganeti/HTools/*.hs) HDDIR = apidoc @@ -13,9 +14,11 @@ HPCEXCL = --exclude Main --exclude Ganeti.HTools.QC 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 $< $@ @@ -38,7 +41,7 @@ maintainer-clean: 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 @@ -58,9 +61,8 @@ dist: Ganeti/HTools/Version.hs version doc 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 -- GitLab