From 88205e0b255f456901481e4c8c13135fc8e3e8bb Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Tue, 8 Dec 2015 11:39:24 +0100 Subject: [PATCH] Added Git.ml generation in ocaml --- ocaml/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ocaml/Makefile b/ocaml/Makefile index dce21ca5..01473ec2 100644 --- a/ocaml/Makefile +++ b/ocaml/Makefile @@ -24,7 +24,7 @@ ALL_EXE=$(patsubst %.ml,%.native,$(wildcard qp_*.ml)) qp_edit.native default: $(ALL_TESTS) $(ALL_EXE) .gitignore .gitignore: $(MLFILES) - @for i in .gitignore ezfio.ml Qptypes.ml qptypes_generator.byte _build $(ALL_EXE) $(ALL_TESTS) \ + @for i in .gitignore ezfio.ml Qptypes.ml Git.ml qptypes_generator.byte _build $(ALL_EXE) $(ALL_TESTS) \ $(patsubst %.ml,%,$(wildcard test_*.ml)) $(patsubst %.ml,%,$(wildcard qp_*.ml)) \ $(shell grep Input Input_auto_generated.ml | awk '{print $$2 ".ml"}') \ qp_edit.ml qp_edit qp_edit.native Input_auto_generated.ml;\ @@ -34,6 +34,7 @@ default: $(ALL_TESTS) $(ALL_EXE) .gitignore executables: $(QP_ROOT)/data/executables + $(QP_ROOT)/data/executables: remake_executables $(QP_ROOT)/scripts/module/create_executables_list.sh @@ -68,8 +69,9 @@ ezfio.ml: ${QP_ROOT}/install/EZFIO/Ocaml/ezfio.ml qptypes_generator.byte: qptypes_generator.ml $(OCAMLBUILD) qptypes_generator.byte -use-ocamlfind -Qptypes.ml: qptypes_generator.byte +Git.ml Qptypes.ml: qptypes_generator.byte ./qptypes_generator.byte > Qptypes.ml + ./create_git_sha1.sh ${QP_ROOT}/install/EZFIO/Ocaml/ezfio.ml: $(NINJA) -C ${QP_ROOT}/install/EZFIO @@ -78,5 +80,5 @@ Input_auto_generated.ml qp_edit.ml: ei_handler.py ocaml_global clean: - rm -rf _build Qptypes.ml Input_auto_generated.ml $(ALL_EXE) $(ALL_TESTS) + rm -rf _build Qptypes.ml Git.ml Input_auto_generated.ml $(ALL_EXE) $(ALL_TESTS)