Files
mercury/tests/options_file/Mmakefile
Zoltan Somogyi aed31c7eda Fix several test case failures.
tests/debugger/user_event_shallow.{m,exp}:
    Mark a predicate with no_inline to prevent -O5 from optimizing
    away an event that the .inp of this case depends on.

tests/invalid/Mmakefile:
    Make the test cases in this directory work even if code generation
    requires reading in the module's own .int file.

tests/invalid/bad_item_in_interface.err_exp2:
    Add an expected output file for grades that do not support memoisation.

tests/invalid/bad_item_in_interface.m:
    Document the reason for the existence of the .err_exp2 file.

tests/options_file/Mmakefile:
    Make the test cases in this directory work even if code generation
    requires reading in the module's own .int file.

    Conform to the changes below.

compiler/options.m:
doc/user_guide.texi:
    Make the --dump-options-file file take an argument that specifies
    the file to which the contents of the options file should be dumped.

compiler/mercury_compile_main.m:
compiler/options_file.m:
    Dump the options file to the specified file, if the filename is not "".
2021-07-30 01:43:59 +10:00

43 lines
1.1 KiB
Makefile

#-----------------------------------------------------------------------------#
# vim: ts=8 sw=8 noexpandtab ft=make
#-----------------------------------------------------------------------------#
TESTS_DIR = ..
THIS_DIR = options_file
MAYBE_J1 =
#-----------------------------------------------------------------------------#
PROGS = \
basic_test
#-----------------------------------------------------------------------------#
TESTS = $(patsubst %,%-nodepend,$(sort $(PROGS)))
include ../Mmake.common
%.runtest: %.optfile_res ;
%.optfile_out: %.m %.options_file
-$(MC) --make-interface $*.m > /dev/null 2>1&
if $(MC) -V --errorcheck-only $(ALL_GRADEFLAGS) $(ALL_MCFLAGS) \
--options-file $*.options_file \
--dump-options-file $*.optfile_out $*.m ; \
then \
true; \
else \
echo COMPILATION FAILED >> $*.optfile_out; \
fi
#-----------------------------------------------------------------------------#
clean_local: clean_options_file
clean_options_file:
realclean_local: realclean_options_file
realclean_options_file:
#-----------------------------------------------------------------------------#