# Macaulay2/packages/Macaulay2Doc/test/Makefile.  Generated from Makefile.in by configure.



# DOTS is the path to M2/Macaulay2 from this directory
DOTS = ../../..
include $(DOTS)/../include/config.Makefile

SRCDIR = .
include Makefile.test


all:

TARGETS = all check status
CLEANTARGETS = clean distclean
SUBDIRS = slow gigantic goals quarantine
define do-in-subdirs
$(foreach d,$(SUBDIRS),
	$(eval .PHONY: $1-in-subdirs)
	$(eval .PHONY $1 $1-in-subdirs:$1-in-$d)
	$(eval $1-in-$d:; $$(MAKE) -C $d $1 $2))
endef
$(foreach t,$(TARGETS),$(eval $(call do-in-subdirs,$t)))
$(foreach t,$(CLEANTARGETS),$(eval $(call do-in-subdirs,$t,DEPENDS=no)))

check: check-deferred
check-deferred:
	@ if egrep -nHw 'defer|deferred|disable|disabled' /builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/packages/Macaulay2Doc/test/*.m2 >/dev/null 2>&1 ; \
	  then echo "make: *** warning: tests in the following files have been deferred:" >&2 ; \
	       egrep -nHw 'defer|deferred|disable|disabled' /builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/packages/Macaulay2Doc/test/*.m2 >&2 ; \
	       false ; \
	  fi

ifneq "no" "no"
RESULTS += dumpdata.out
endif

docStructure.out: docStructure.m2

Makefile: Makefile.in; cd $(DOTS)/..; ./config.status Macaulay2/packages/Macaulay2Doc/test/Makefile
Makefile.test: Makefile.test.in; cd $(DOTS)/..; ./config.status Macaulay2/packages/Macaulay2Doc/test/Makefile.test

MIKE_TESTS := $(wildcard ./mt-*.m2 ./gigantic/mt-*.m2)
MIKE_RESULTS := $(patsubst ./%.m2, %.out, $(MIKE_TESTS))
mike-tests: $(MIKE_RESULTS) ; grep sys $^ 

# Local Variables:
# compile-command: "make -k -C $M2BUILDDIR/Macaulay2/packages/Macaulay2Doc/test "
# End:
