From 07dde0c165b3ab1edcca96b61657f9274e7ebfc0 Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Wed, 23 Mar 2011 16:23:50 +0100
Subject: [PATCH] hs-coverage: make a symlink hpc_index.html

This allows Apache to display the directory in a nicer way.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
---
 Makefile.am | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile.am b/Makefile.am
index cb750fae5..6c1fe1d4e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1092,6 +1092,7 @@ hs-coverage: $(haskell_tests)
 	mkdir -p $(COVERAGE_HS_DIR)
 	hpc markup --destdir=$(COVERAGE_HS_DIR) htools/test $(HPCEXCL)
 	hpc report htools/test $(HPCEXCL)
+	ln -s hpc_index.html $(COVERAGE_HS_DIR)/index.html
 
 # Special "kind-of-QA" target for htools, needs special setup (all
 # tools compiled with -fhpc)
-- 
GitLab