diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000000000000000000000000000000000000..7c1a49eb8b7ea9f6353dcffde5cd330800794f24
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,11 @@
+OCTAVE=octave-cli
+MATLAB=`which matlab`
+
+all: check-octave check-matlab
+
+check-octave:
+	@cd tests ;\
+	$(OCTAVE) --no-init-file --silent --no-history runalltests.m
+
+check-matlab:
+	@$(MATLAB)  -nosplash -nodisplay -r "cd tests; runalltests; quit"
diff --git a/tests/runalltests.m b/tests/runalltests.m
index d597f17b9d1ebbadfea7acdc325147bcfffbd00a..cd561e0091ca55ef86b8a97b77934348789c8c62 100644
--- a/tests/runalltests.m
+++ b/tests/runalltests.m
@@ -27,6 +27,10 @@ catch
     initialize_dates_toolbox;
 end
 
+if isoctave
+    more off
+end
+
 tmp = dates_src_root;
 tmp = tmp(1:end-1); % Remove trailing slash.
 run_unitary_tests_in_directory(tmp);