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:
#-----------------------------------------------------------------------------
# etags generation
-
-GHCTAGS = $(TOP)/utils/ghctags/ghctags
+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