Makefile 448 Bytes
Newer Older
1 2
OCTAVE ?= octave-cli
MATLAB ?= $(shell which matlab)
3 4 5 6 7

all: check-octave check-matlab

check-octave:
	@cd test ;\
8
	$(OCTAVE) --no-init-file --silent --no-history --eval "addpath([pwd() '/../dseries/src']); addpath([pwd() '/../src']); runtest;" && [ -f my/report/dir/report.pdf ]
9 10

check-matlab:
11
	@$(MATLAB) -nosplash -nodisplay -r "addpath([pwd '/dseries/src']); addpath([pwd '/src']); cd test; runtest; quit" && [ -f test/my/report/dir/report.pdf ]