Sélectionner une révision Git
makefile 1,11 Kio
caml_file := coef_to_csv csv
caml_need_csv := point_assos_to_gephi graph_export
caml_to_run := coef_to_csv. point_assos_to_gephi. graph_export.
gefx_to_test := graphe_assos_actif_frantome graphe_assos_actif graphe_eleve_vs_fantome
all: compile run clean test
compile: init $(caml_file) $(caml_need_csv) complete_compile
init:
@echo "\nStart to compile all caml programs\n"
$(caml_file):
cd script/src;ocamlopt $@.ml -o ../bin/$@.exe
$(caml_need_csv):
cd script/src;ocamlopt unix.cmxa csv.ml $@.ml -o ../bin/$@.exe
complete_compile:
@echo "\nAll caml programs compiled !\n"
run: init_run $(caml_to_run) complete_run
init_run:
@echo "Running files..."
$(caml_to_run):
@echo ""
cd script/bin;./$@exe
complete_run:
@echo "\nAll caml programs executed !\n"
clean:
@echo "Cleaning file."
cd script/src;rm -v *.cmx *.o
@echo "File cleaned.\n"
test: init_test $(gefx_to_test) end_test
init_test:
@echo "Testing gefx file format"
$(gefx_to_test):
@echo "testing $@.gexf"
@cd test_format;xmllint --noout --schema gexf.xsd ../res_script/$@.gexf
end_test:
@echo "All gexf have been tested\nTest Completed\n"