Have separate rules to generate tags and TAGS
authorIan Lynagh <igloo@earth.li>
Sat, 27 Feb 2010 20:25:17 +0000 (20:25 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 27 Feb 2010 20:25:17 +0000 (20:25 +0000)
This works around the two filenames being the same on case-insensitive
file systems.

ghc.mk
rules/tags-package.mk

diff --git a/ghc.mk b/ghc.mk
index 768ff15..a8a4b70 100644 (file)
--- a/ghc.mk
+++ b/ghc.mk
@@ -751,6 +751,9 @@ libraries/ghc-prim/dist-install/build/autogen/GHC/PrimopWrappers.hs: \
 .PHONY: tags
 tags: tags_compiler
 
+.PHONY: TAGS
+TAGS: TAGS_compiler
+
 # -----------------------------------------------------------------------------
 # Installation
 
index e5d572d..a7e46d1 100644 (file)
@@ -23,7 +23,11 @@ define tags-package
 
 .PHONY: tags_$1
 tags_$1:
-       inplace/bin/ghctags --topdir $$(TOP)/inplace/lib -b --use-cabal-config $1/$2 -- $$($1_$2_TAGS_HC_OPTS) $$($1_$2_v_ALL_HC_OPTS) -- $$($1_$2_HS_SRCS)
+       inplace/bin/ghctags --topdir $$(TOP)/inplace/lib -c --use-cabal-config $1/$2 -- $$($1_$2_TAGS_HC_OPTS) $$($1_$2_v_ALL_HC_OPTS) -- $$($1_$2_HS_SRCS)
+
+.PHONY: TAGS_$1
+TAGS_$1:
+       inplace/bin/ghctags --topdir $$(TOP)/inplace/lib -e --use-cabal-config $1/$2 -- $$($1_$2_TAGS_HC_OPTS) $$($1_$2_v_ALL_HC_OPTS) -- $$($1_$2_HS_SRCS)
 
 endef