From 2e8de3ff85a596a2d06ac59244658c1a9d84d7db Mon Sep 17 00:00:00 2001 From: Gabriel Scherer Date: Thu, 10 Dec 2015 08:27:20 +0100 Subject: Makefile: a 'runtop' target to build and run the toplevel Pass the content of the TOPFLAGS variable as additional arguments, eg. TOPFLAGS="-dparsetree" make runtop --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4899629ed0..0b62733671 100644 --- a/Makefile +++ b/Makefile @@ -334,6 +334,14 @@ ocaml: compilerlibs/ocamlcommon.cma compilerlibs/ocamlbytecomp.cma \ partialclean:: rm -f ocaml +RUNTOP=./byterun/ocamlrun ./ocaml -nostdlib -I stdlib -noinit $(TOPFLAGS) + +runtop: + $(MAKE) runtime + $(MAKE) coreall + $(MAKE) ocaml + @rlwrap --help 2>/dev/null && rlwrap $(RUNTOP) || $(RUNTOP) + # The native toplevel ocamlnat: ocamlopt otherlibs/dynlink/dynlink.cmxa $(NATTOPOBJS:.cmo=.cmx) -- cgit v1.2.1