summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.nt10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile.nt b/Makefile.nt
index 6a962fc9e..68ee41062 100644
--- a/Makefile.nt
+++ b/Makefile.nt
@@ -108,7 +108,7 @@ PERVASIVES=arg array buffer callback char digest filename format gc hashtbl \
marshal int32 int64 nativeint outcometree
# Recompile the system using the bootstrap compiler
-all: runtime ocamlc ocamllex ocamlyacc ocamltools library ocaml otherlibraries
+all: runtime ocamlc ocamllex ocamlyacc ocamltools library ocaml otherlibraries camlp4out
# The compilation of ocaml will fail if the runtime has changed.
# Never mind, just do make bootstrap to reach fixpoint again.
@@ -197,7 +197,7 @@ cleanboot:
rm -rf boot\Saved\Saved.prev\*
# Compile the native-code compiler
-opt: runtimeopt ocamlopt libraryopt otherlibrariesopt
+opt: runtimeopt ocamlopt libraryopt otherlibrariesopt camlp4opt
# Native-code versions of the tools
opt.opt: ocamlc.opt ocamlopt.opt ocamllex.opt
@@ -206,6 +206,8 @@ opt.opt: ocamlc.opt ocamlopt.opt ocamllex.opt
install: installbyt installopt
installbyt:
+ if not exist "$(BINDIR)" mkdir "$(BINDIR)"
+ if not exist "$(LIBDIR)" mkdir "$(LIBDIR)"
cd byterun & $(MAKEREC) install
echo $(LIBDIR)> $(LIBDIR)\ld.conf
cp ocamlc $(BINDIR)\ocamlc.exe
@@ -228,6 +230,7 @@ installbyt:
copy /a README.win32 $(DISTRIB)\Readme.win
copy /a LICENSE $(DISTRIB)\License.txt
copy /a Changes $(DISTRIB)\Changes.txt
+ cd camlp4 & make install
# Installation of the native-code compiler
installopt:
@@ -523,9 +526,10 @@ alldepend::
camlp4out:
cd camlp4\config & cat Makefile.tpl Makefile-nt.cnf > Makefile
cd camlp4 & make
-
camlp4opt:
cd camlp4 & make opt
+partialclean::
+ cd camlp4 & make clean
# Default rules