X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Makefile;h=e4b56142d8f4c913107cfb5e48a65d82e66a0e26;hb=cc463ba28fdd11eaea2dc9a62b89ca80ac38ac12;hp=99e5988aa12b20df7f7ed26cfa819a64cd1af962;hpb=f18af71db7d550223e3c0012896a0d422fcaf97d;p=ghc-hetmet.git diff --git a/Makefile b/Makefile index 99e5988..e4b5614 100644 --- a/Makefile +++ b/Makefile @@ -121,6 +121,28 @@ install :: fi; \ done +# If installing on Windows with MinGW32, copy the gcc compiler, headers and libs +# and the perl interpreter and dll into the GHC prefix directory. +# Gcc and Perl source locations derived from configuration data. +ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32" +ifneq "$(WhatGccIsCalled)" "" +install :: + -mkdir $(prefix)/gcc-lib + -mkdir $(prefix)/include + -mkdir $(prefix)/include/mingw + -cp -rp $(GccDir)../include/* $(prefix)/include/mingw + -cp -rp $(GccDir)../lib/gcc-lib/mingw32/$(GccVersion)/* $(prefix)/gcc-lib + -cp $(GccDir)../lib/*.* $(prefix)/gcc-lib + -cp $(GccDir)gcc.exe $(prefix) + -cp $(GccDir)as.exe $(prefix)/gcc-lib + -cp $(GccDir)ld.exe $(prefix)/gcc-lib + -cp $(GccDir)dllwrap.exe $(prefix)/gcc-lib + -cp $(GccDir)dlltool.exe $(prefix)/gcc-lib + -cp $(GhcDir)../perl.exe $(prefix) + -cp $(GhcDir)../perl56.dll $(prefix) +endif +endif + install-docs :: @case '${MFLAGS}' in *-[ik]*) x_on_err=0;; *-r*[ik]*) x_on_err=0;; *) x_on_err=1;; esac; \ for i in $(filter-out $(ProjectsDontInstall), $(SUBDIRS)); do \ @@ -261,6 +283,7 @@ BINDIST_DOC_WAYS = html ps # BINDIST_DOC_WAYS = binary-dist :: +ifneq "$(DOCBOOK_CATALOG)" "" @for i in $(BIN_DIST_DIRS); do \ if test -d "$$i"; then \ $(MAKE) -C $$i $(MFLAGS) $(BINDIST_DOC_WAYS); \ @@ -280,6 +303,7 @@ binary-dist :: datadir=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/share; \ fi \ done +endif # Rename scripts to $i.prl and $i.sh where necessary. # ToDo: do this in a cleaner way...