update submodules for GHC.HetMet.GArrow -> Control.GArrow renaming
[ghc-hetmet.git] / rules / tags-package.mk
1 # -----------------------------------------------------------------------------
2 #
3 # (c) 2009 The University of Glasgow
4 #
5 # This file is part of the GHC build system.
6 #
7 # To understand how the build system works and how to modify it, see
8 #      http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture
9 #      http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying
10 #
11 # -----------------------------------------------------------------------------
12
13
14 # Build the tags files for a package. Use like this:
15 #
16 # $(eval $(call tags-package,compiler,stage2))
17 #
18 # Uses the same metadata as build-package.
19
20 define tags-package
21 $(call trace, tags-package($1,$2))
22 $(call profStart, tags-package($1,$2))
23 # $1 = dir
24 # $2 = distdir
25
26 .PHONY: tags_$1
27 tags_$1:
28         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)
29
30 .PHONY: TAGS_$1
31 TAGS_$1:
32         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)
33
34 $(call profEnd, tags-package($1,$2))
35 endef
36