From 945aefc681772d32cfc67cc7d4d3d831ece75a05 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Sat, 27 Feb 2010 20:25:17 +0000 Subject: [PATCH] Have separate rules to generate tags and TAGS This works around the two filenames being the same on case-insensitive file systems. --- ghc.mk | 3 +++ rules/tags-package.mk | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ghc.mk b/ghc.mk index 768ff15..a8a4b70 100644 --- 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 diff --git a/rules/tags-package.mk b/rules/tags-package.mk index e5d572d..a7e46d1 100644 --- a/rules/tags-package.mk +++ b/rules/tags-package.mk @@ -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 -- 1.7.10.4