mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-20 20:03:44 +00:00
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.
46 lines
1.1 KiB
Plaintext
46 lines
1.1 KiB
Plaintext
#-----------------------------------------------------------------------------#
|
|
|
|
main_target: check
|
|
|
|
include ../Mmake.common
|
|
|
|
MCFLAGS-pretty_print_test = --no-line-numbers
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
mdemangle_test.out: mdemangle_test.inp
|
|
mdemangle < mdemangle_test.inp > mdemangle_test.out 2>&1
|
|
|
|
pretty_print_test.out: pretty_print_test.ugly
|
|
cp pretty_print_test.ugly pretty_print_test.out
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
PROGS =
|
|
|
|
OTHER_TESTS = mdemangle_test pretty_print_test
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
DEPS= $(PROGS:%=%.dep)
|
|
DEPENDS=$(PROGS:%=%.depend)
|
|
OUTS= $(PROGS:%=%.out) $(OTHER_TESTS:%=%.out)
|
|
RESS= $(PROGS:%=%.res) $(OTHER_TESTS:%=%.res)
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
dep: $(DEPS)
|
|
|
|
depend: $(DEPENDS)
|
|
|
|
check: $(OUTS) $(RESS)
|
|
|
|
all: $(PROGS)
|
|
|
|
clean_local: clean_ugly
|
|
|
|
clean_ugly:
|
|
rm -fr *.ugly
|
|
|
|
#-----------------------------------------------------------------------------#
|