mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-05-01 01:04:43 +00:00
tests/Mmake.common:
Don't invoke any actions in the clean_local and realclean_local
targets, since if using mmc --make, the builtin mmake rules
have actions for those targets as well, and make can't handle
more than one action for a target having actions. Replace those
actions with dependencies on other, unique targets that have
the actions instead.
tests/*/Mmakefile:
Avoid actions in clean_local and realclean_local targets the same way.
Sort the test names in some directories that didn't already do so.
Delete some obsolete comments.
Fix style.
tests/valid/Mmake.valid.common:
As for the Mmakefiles above, and also move the definition of a make
variable before it is needed.
39 lines
993 B
Makefile
39 lines
993 B
Makefile
#-----------------------------------------------------------------------------#
|
|
# vim: ts=8 sw=8 noexpandtab ft=make
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
THIS_DIR = analysis_external
|
|
SUBDIRS =
|
|
TESTS_DIR = ..
|
|
MAYBE_J1 = -j1
|
|
|
|
# Delete options which are incompatible with --intermodule-analysis.
|
|
# These are currently set for nightly tests.
|
|
override EXTRA_MCFLAGS := $(patsubst --intermodule-opt%,,$(EXTRA_MCFLAGS))
|
|
override EXTRA_MCFLAGS := $(patsubst --transitive-%,,$(EXTRA_MCFLAGS))
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
ifdef WORKSPACE_HAS_SUBDIRS
|
|
TESTS = \
|
|
ext-nodepend \
|
|
ext2-nodepend
|
|
else
|
|
TESTS =
|
|
endif
|
|
|
|
include $(TESTS_DIR)/Mmake.common
|
|
|
|
ext.runtest:
|
|
MC=$(MC) ./ext_runtest.sh
|
|
|
|
ext2.runtest:
|
|
MC=$(MC) ./ext2_runtest.sh
|
|
|
|
realclean_local: realclean_analysis_external
|
|
|
|
realclean_analysis_external:
|
|
$(RM) -r Mercury
|
|
|
|
#-----------------------------------------------------------------------------#
|