X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FMakefile;fp=compiler%2FMakefile;h=407cea60176ab3e8e910f89a41a1c6af31858e15;hp=03f09405b2801c461c0853819c1a31a22086ef70;hb=e48d901d2e723c1b24b86c4755b948e70506f990;hpb=7fb94f753f166563ee3f3b43e7ec5064e82971d3 diff --git a/compiler/Makefile b/compiler/Makefile index 03f0940..407cea6 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -484,3 +484,14 @@ endif include $(TOP)/mk/bindist.mk LIB_DIST_DIR = dist-stage2 +#----------------------------------------------------------------------------- +# etags generation + +GHCTAGS = $(TOP)/utils/ghctags/ghctags +GHCTAGS_ROOT = main/GHC.hs + +# etags for stage2 is actually broken since it requires building +# ghctags against an older ghc api +etags: etags.stage.2 +etags.stage.%: + $(GHCTAGS) --topdir $(FPTOOLS_TOP_ABS) --etags --use-cabal-config=./dist-stage$* -- -DSTAGE=$* -- $(GHCTAGS_ROOT)