Tentatives de modularisation des classes, y a encore deux trois problèmes

This commit is contained in:
2021-03-11 16:25:36 +01:00
parent 3a5c532475
commit 91d3a9ef60
6 changed files with 25 additions and 7 deletions
+12 -1
View File
@@ -6,6 +6,17 @@ ascii: $(shell find textes/ -type f -iname "*.txt" ! -iname "*.ascii.txt" | sed
%.cmx: %.ml
ocamlopt -c $<
%.cmo: %.ml
ocamlc -c $<
Code.cmo: Code.ml Math.cmo
mkdir tmp
cat Code.ml | sed '/^#/d' > tmp/Code.ml
ocamlc -c tmp/Code.ml Math.cmo
mv tmp/Code.cmo Code.cmo
rm -r tmp
tipe: tipe.cmx
ocamlopt -o tipe str.cmxa tipe.cmx
@@ -16,4 +27,4 @@ tipe: tipe.cmx
runall: $(shell find textes/ -type f -iname "*.txt" ! -iname "*.ascii.txt" | sed "s/\.txt/\.txt\.test/")
clean:
rm -rf tipe *.cmx *.cmi *.o textes/*.ascii.txt
rm -rf tipe *.cmx *.cmi *.cmo *.o textes/*.ascii.txt *.ntl.ml