Skip to content
Extraits de code Groupes Projets

Makefile OCaml

  • Cloner avec SSH
  • Cloner avec HTTPS
  • Intégrer
  • Partager
    L'extrait de code peut être consulté sans aucune authentification.
    Rédigé par Thomas "Oxymore" Kowalski
    Modifié
    Makefile 408 o
    # https://ocaml.org/learn/tutorials/modules.html
    
    all: 
    	make clean_all
    	make projet
    	make clean
    
    projet:
    	ocamlopt -c projet.ml
    	ocamlopt -c tests.ml
    	ocamlopt -o tests projet.cmx tests.cmx
    
    clean:
    	echo "Nettoyage"
    	find -name "*.cmx" -delete
    	find -name "*.cmi" -delete
    	find -name "*.cmo" -delete
    	find -name "*.o" -delete
    	
    clean_all: clean
    	echo "Nettoyage tout"
    	if [ -f "tests" ]; then rm "tests"; fi
    0% Chargement en cours ou .
    You are about to add 0 people to the discussion. Proceed with caution.
    Terminez d'abord l'édition de ce message.
    Veuillez vous inscrire ou vous pour commenter