Files
mercury/tests/warnings/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

59 lines
1.3 KiB
Plaintext

#-----------------------------------------------------------------------------#
main_target: check
#-----------------------------------------------------------------------------#
PROGS= \
det_infer_warning \
double_underscore \
duplicate_call \
inf_recursion_lambda \
infinite_recursion \
missing_if \
pragma_source_file \
simple_code \
singleton_test \
unused_args_test \
unused_import
#-----------------------------------------------------------------------------#
# some files need to be compiled with special options
MCFLAGS-duplicate_call = --warn-duplicate-calls
MCFLAGS-unused_args_test = --warn-unused-args
MCFLAGS-unused_import = --warn-interface-imports
#-----------------------------------------------------------------------------#
%.res: %.exp %.err
-rm -f $@
diff -c $*.exp $*.err > $@
#-----------------------------------------------------------------------------#
DEPENDS=$(PROGS:%=%.depend)
ERRS= $(PROGS:%=%.err)
RESS= $(PROGS:%=%.res)
#-----------------------------------------------------------------------------#
depend: $(DEPENDS)
check: $(ERRS) $(RESS)
all: $(PROGS)
clean_local: clean_err clean_res
clean_mc: clean_c clean_o clean_err clean_res
clean_err:
rm -f *.err
clean_res:
rm -f *.res
#-----------------------------------------------------------------------------#