ocaml/testsuite/makefiles/Makefile.dparsetree

28 lines
1.2 KiB
Makefile

#########################################################################
# #
# OCaml #
# #
# Xavier Clerc, SED, INRIA Rocquencourt #
# Jeremie Dimino, Jane Street Europe #
# #
# Copyright 2010 Institut National de Recherche en Informatique et #
# en Automatique. All rights reserved. This file is distributed #
# under the terms of the Q Public License version 1.0. #
# #
#########################################################################
default:
@for file in *.ml; do \
$(OCAMLC) -dparsetree -c $$file 2>$$file.result >/dev/null || true; \
done
@for file in *.reference; do \
printf " ... testing '$$file':"; \
$(DIFF) $$file `basename $$file reference`result >/dev/null \
&& echo " => passed" || echo " => failed"; \
done
promote: defaultpromote
clean: defaultclean
@rm -f *.result