Files
mercury/tests/term/Mmakefile
Mark Brown 784dc26cab Fix bugs that were stopping *.res and *.out files being cleaned up properly.
Estimated hours taken: 0.5

Fix bugs that were stopping *.res and *.out files being cleaned up properly.

tests/Mmake.common:
tests/general/accumulator/Mmakefile:
tests/invalid/Mmakefile:
tests/misc_tests/Mmakefile:
tests/tabling/Mmakefile:
tests/term/Mmakefile:
tests/valid/Mmakefile:
tests/warnings/Mmakefile:
	Make cleaning tasks depend on (real)clean_local rather than
	(real)clean.  This is because tests/startup and tests/shutdown
	use the *_local targets.

tests/general/Mmakefile:
	Fix bugs in the recursive mmake calls.
1999-07-14 17:04:41 +00:00

100 lines
1.8 KiB
Plaintext

#-----------------------------------------------------------------------------#
main_target: check
include ../Mmake.common
#-----------------------------------------------------------------------------#
PROGS= \
ack \
append \
arit_exp \
associative \
dds1_2 \
dds3_13 \
dds3_14 \
dds3_15 \
dds3_17 \
dds3_8 \
fold \
my_list \
lte \
my_map \
member \
mergesort \
mergesort_ap \
mergesort_t \
mmatrix \
money \
naive_rev \
occur \
ordered \
overlap \
permutation \
pl1_1 \
pl1_2 \
pl2_3_1 \
pl3_1_1 \
pl3_5_6 \
pl3_5_6a \
pl4_01 \
pl4_4_3 \
pl4_4_6a \
pl4_5_2 \
pl4_5_3a \
pl5_2_2 \
pl6_1_1 \
pl7_2_9 \
pl7_6_2a \
pl7_6_2b \
pl7_6_2c \
pl8_2_1 \
pl8_2_1a \
pl8_3_1 \
pl8_3_1a \
pl8_4_1 \
pl8_4_2 \
queens \
quicksort \
select \
subset \
sum \
vangelder
DEPENDS = $(PROGS:%=%.depend)
TRANS_OPTS = $(PROGS:%=$(trans_opts_subdir)%.trans_opt)
TRANS_OPT_RESS = $(PROGS:%=%.trans_opt_res)
#-----------------------------------------------------------------------------#
MCFLAGS = --trans-intermod-opt
MCTERMFLAGS = --enable-termination --term-single-arg 5 --term-norm simple
MCOPTFLAGS = --no-inlining --no-optimize-unused-args --no-deforestation \
--no-optimize-higher-order
MCTRANSOPTFLAGS = $(MCTERMFLAGS) $(MCOPTFLAGS)
$(trans_opts_subdir)%.trans_opt: %.m
$(MC) $(ALL_MCFLAGS) --make-trans-opt $(MCTRANSOPTFLAGS) $< \
> $*.trans_opt_err 2>&1
%.trans_opt_res: %.trans_opt_exp $(trans_opts_subdir)%.trans_opt
diff -c $*.trans_opt_exp $(trans_opts_subdir)$*.trans_opt > $@
#-----------------------------------------------------------------------------#
depend: $(DEPENDS)
trans_opts: $(TRANS_OPTS)
check: $(TRANS_OPT_RESS)
clean_local:
rm -f *.trans_opt_err
realclean_local:
rm -f *.trans_opt_res
#-----------------------------------------------------------------------------#