Ajout de jolies définitions mli pour les modules

Modification du Makefile qui détecte tout seul la présence d'un mli.
Rangement des pdfs dans un sous-dossier "Documents"
This commit is contained in:
2021-03-11 22:49:00 +01:00
parent 91d3a9ef60
commit 929150577c
8 changed files with 147 additions and 67 deletions
+5 -8
View File
@@ -7,16 +7,13 @@ ascii: $(shell find textes/ -type f -iname "*.txt" ! -iname "*.ascii.txt" | sed
%.cmx: %.ml
ocamlopt -c $<
Code.cmo: Math.cmo
%.cmi: %.mli
ocamlc -c $<
%.cmo: %.ml
if [ -f $*".mli" ]; then ocamlc -c $*".mli" ; fi
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