From 77adbb0ae6dcb96376b2951a154c24b3e03a5b91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Hinderer?= Date: Mon, 24 Jul 2017 11:04:09 +0200 Subject: [PATCH] Integrate the build of ocamltest to the main build system This commit ensures ocamltest.byte and ocamltest.opt get built along with the other tools. --- Makefile | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 6123b2a06..c4bd25fd7 100644 --- a/Makefile +++ b/Makefile @@ -476,13 +476,15 @@ opt.opt: $(MAKE) ocaml $(MAKE) opt-core $(MAKE) ocamlc.opt - $(MAKE) otherlibraries $(WITH_DEBUGGER) $(WITH_OCAMLDOC) + $(MAKE) otherlibraries $(WITH_DEBUGGER) $(WITH_OCAMLDOC) ocamltest $(MAKE) ocamlopt.opt $(MAKE) otherlibrariesopt - $(MAKE) ocamllex.opt ocamltoolsopt ocamltoolsopt.opt $(OCAMLDOC_OPT) + $(MAKE) ocamllex.opt ocamltoolsopt ocamltoolsopt.opt $(OCAMLDOC_OPT) \ + ocamltest.opt else opt.opt: core opt-core ocamlc.opt all ocamlopt.opt ocamllex.opt \ - ocamltoolsopt ocamltoolsopt.opt otherlibrariesopt $(OCAMLDOC_OPT) + ocamltoolsopt ocamltoolsopt.opt otherlibrariesopt $(OCAMLDOC_OPT) \ + ocamltest.opt endif .PHONY: base.opt @@ -493,7 +495,7 @@ base.opt: $(MAKE) ocaml $(MAKE) opt-core $(MAKE) ocamlc.opt - $(MAKE) otherlibraries $(WITH_DEBUGGER) $(WITH_OCAMLDOC) + $(MAKE) otherlibraries $(WITH_DEBUGGER) $(WITH_OCAMLDOC) ocamltest $(MAKE) ocamlopt.opt $(MAKE) otherlibrariesopt @@ -525,7 +527,7 @@ coreboot: all: runtime $(MAKE) coreall $(MAKE) ocaml - $(MAKE) otherlibraries $(WITH_DEBUGGER) $(WITH_OCAMLDOC) + $(MAKE) otherlibraries $(WITH_DEBUGGER) $(WITH_OCAMLDOC) ocamltest # Bootstrap and rebuild the whole system. # The compilation of ocaml will fail if the runtime has changed. @@ -695,8 +697,6 @@ installopt: cp -f flexdll/flexlink.opt "$(INSTALL_BINDIR)/flexlink$(EXE)" ; \ fi - - .PHONY: installoptopt installoptopt: cp ocamlc.opt "$(INSTALL_BINDIR)/ocamlc.opt$(EXE)" @@ -735,7 +735,7 @@ install-compiler-sources: # Run all tests .PHONY: tests -tests: opt.opt +tests: opt.opt ocamltest cd testsuite; $(MAKE) clean && $(MAKE) all # Make clean in the test suite @@ -976,7 +976,7 @@ clean:: otherlibs_all := bigarray dynlink graph raw_spacetime_lib \ str systhreads threads unix win32graph win32unix -subdirs := asmrun byterun debugger lex ocamldoc stdlib tools \ +subdirs := asmrun byterun debugger lex ocamldoc ocamltest stdlib tools \ $(addprefix otherlibs/, $(otherlibs_all)) .PHONY: alldepend @@ -1052,6 +1052,16 @@ ocamldoc: ocamlc ocamlyacc ocamllex otherlibraries ocamldoc.opt: ocamlc.opt ocamlyacc ocamllex $(MAKE) -C ocamldoc opt.opt +# OCamltest +ocamltest: ocamlc ocamlyacc ocamllex + $(MAKE) -C ocamltest + +ocamltest.opt: ocamlc.opt ocamlyacc ocamllex + $(MAKE) -C ocamltest ocamltest.opt$(EXE) + +partialclean:: + $(MAKE) -C ocamltest clean + # Documentation .PHONY: html_doc