diff options
author | Ian Lynagh <igloo@earth.li> | 2010-02-21 16:44:32 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2010-02-21 16:44:32 +0000 |
commit | 0ca48da78f669b18a574dc18e8b20b5393526b1d (patch) | |
tree | 282345821296e35bd931cd5d0812a895ab1931a0 /rules | |
parent | a4c75d1d6c00a3ae71dd1f8b6b49c96dac641ee3 (diff) | |
download | haskell-0ca48da78f669b18a574dc18e8b20b5393526b1d.tar.gz |
Make "make tags" work in the new build system
Diffstat (limited to 'rules')
-rw-r--r-- | rules/tags-package.mk | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/rules/tags-package.mk b/rules/tags-package.mk new file mode 100644 index 0000000000..e5d572da62 --- /dev/null +++ b/rules/tags-package.mk @@ -0,0 +1,29 @@ +# ----------------------------------------------------------------------------- +# +# (c) 2009 The University of Glasgow +# +# This file is part of the GHC build system. +# +# To understand how the build system works and how to modify it, see +# http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture +# http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying +# +# ----------------------------------------------------------------------------- + + +# Build the tags files for a package. Use like this: +# +# $(eval $(call tags-package,compiler,stage2)) +# +# Uses the same metadata as build-package. + +define tags-package +# $1 = dir +# $2 = distdir + +.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) + +endef + |