#-----------------------------------------------------------------------------#
# vim: ts=8 sw=8 noexpandtab ft=make
#-----------------------------------------------------------------------------#

TESTS_DIR = ..
THIS_DIR = analysis_trail
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
PROGS = trail_m1
else
PROGS = 
endif

TESTS = $(sort $(PROGS:%=%-nodepend))

include ../Mmake.common

trail_m1.runtest:
	MC=$(MC) ./trail_runtest.sh

realclean_local: realclean_analysis_trail

realclean_analysis_trail:
	$(RM) trail_m1.m
	$(RM) -r Mercury

#-----------------------------------------------------------------------------#
