#To recreate the examples, run "make" in BUILD/normal/Macaulay2/packages/SCSCP/docinput.
#(After changing this file, run ./config.status Macaulay2/packages/SCSCP/docinput/Makefile
#  in the toplevel build tree)

M2=@pre_bindir@/M2@EXE@
VPATH = @srcdir@

M2=M2  #delete this later

files = gap1 gap2 gapmats gappol magmaremobj
outfiles = $(files:%=@srcdir@/%.out)

all: checkservers $(outfiles)

Makefile: Makefile.in; cd ../../../..; ./config.status Macaulay2/packages/SCSCP/docinput/Makefile

checkservers: checkgap checkmagma
checkgap: 
	nc -z 127.0.0.1 26135
checkmagma: 
	nc -z 127.0.0.1 26136

%.out: %.m2; 
	$(M2) -q --stop -e 'loadPackage "SCSCP"' < $^ > out.tmp
	mv out.tmp $@
.NOTPARALLEL:
