Commit 945aefc6 authored by Ian Lynagh's avatar Ian Lynagh

Have separate rules to generate tags and TAGS

This works around the two filenames being the same on case-insensitive
file systems.
parent 09d2b3b2
......@@ -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
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment