X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FMakefile;h=7ca001a3ed2d0c6049398a0867916615065f8c8d;hb=d7b36bbbcd56ee14656223d02e32f5a1f52ea17b;hp=03f09405b2801c461c0853819c1a31a22086ef70;hpb=ed1cc5d8a193151d6733fb146986ebf23597fda0;p=ghc-hetmet.git diff --git a/compiler/Makefile b/compiler/Makefile index 03f0940..7ca001a 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -213,6 +213,7 @@ build.stage.%: doc.stage.%: $(CABAL) haddock --distpref dist-stage$* \ --haddock-option=--optghc=-DSTAGE=$* \ + --haddock-option=+RTS --haddock-option=-s --haddock-option=-c --haddock-option=-RTS \ --with-haddock=$(FPTOOLS_TOP_ABS)/utils/haddock/install-inplace/bin/haddock install: @@ -484,3 +485,17 @@ endif include $(TOP)/mk/bindist.mk LIB_DIST_DIR = dist-stage2 +#----------------------------------------------------------------------------- +# etags generation +ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32" +GHCTAGS = $(TOP)/utils/ghctags/ghctags.exe +else +GHCTAGS = $(TOP)/utils/ghctags/ghctags-inplace +endif +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)