TIPE2021/Makefile
Mysaa 2c825f16a8 Rédaction d'une grande partie de la seconde partie du compte rendu
Retypage de quelques fonctions
Correction d'un problème de dépendances dans le Makefile
2021-06-01 20:06:47 +02:00

29 lines
644 B
Makefile

%.ascii.txt: %.txt
iconv -f utf-8 -t ascii//TRANSLIT $< -o $@
ascii: $(shell find textes/ -type f -iname "*.txt" ! -iname "*.ascii.txt" | sed "s/\.txt/\.ascii\.txt/")
%.cmx: %.ml
ocamlopt -c $<
Code.cmo: Code.ml Math.cmo
ocamlc -c "Code.mli"
ocamlc -c "Code.ml"
%.cmi: %.mli
ocamlc -c $<
%.cmo: %.ml
if [ -f $*".mli" ]; then ocamlc -c $*".mli" ; fi
ocamlc -c $<
tipe: tipe.cmx
ocamlopt -o tipe str.cmxa tipe.cmx
%.txt.test: %.ascii.txt tipe
./tipe $<
runall: $(shell find textes/ -type f -iname "*.txt" ! -iname "*.ascii.txt" | sed "s/\.txt/\.txt\.test/")
clean:
rm -rf tipe *.cmx *.cmi *.cmo *.o textes/*.ascii.txt *.ntl.ml