X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FMakefile;h=fd6afb1c355018791ce408f1a160335b4bd0573c;hb=bd0bd647062bad646dd8b2d0f85cce67c2079907;hp=d64732aeb076acede93a76e9753756b4c34157a1;hpb=e0f3f5f3d0f70a5c128343ac16b815e73f1c1827;p=ghc-hetmet.git diff --git a/compiler/Makefile b/compiler/Makefile index d64732a..fd6afb1 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -56,7 +56,7 @@ stage3 :: $(MAKE) stage=3 ifeq "$(CLEAN_ALL_STAGES)" "YES" -clean distclean:: +clean distclean maintainer-clean:: $(RM) -f prelude/primops.txt $(RM) -f $(PRIMOP_BITS) $(RM) -f $(CONFIG_HS) @@ -66,13 +66,13 @@ clean distclean:: endif ifeq "$(CLEAN_ALL_STAGES)" "YES" -clean distclean:: clean.stage.1 clean.stage.2 clean.stage.3 +clean distclean maintainer-clean:: clean.stage.1 clean.stage.2 clean.stage.3 else -clean distclean:: clean.stage.$(stage) +clean distclean maintainer-clean:: clean.stage.$(stage) endif ifeq "$(CLEAN_ALL_STAGES)" "YES" -distclean:: +distclean maintainer-clean:: $(RM) -f ghc.cabal endif @@ -212,7 +212,9 @@ build.stage.%: doc.stage.%: $(CABAL) haddock --distpref dist-stage$* \ + --html-location='../$$pkg' \ --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 +486,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 ghci/InteractiveUI.hs main/PprTyThing.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)