Files
mercury/tests/options_file/Mmakefile
Julien Fischer 7d1889bdbf Fix a typo.
tests/options_file/Mmakefile:
    Redirect stderr to stdout rather than a file named "1".
2023-09-08 15:21:54 +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:
#-----------------------------------------------------------------------------#