]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/test-simple/Makefile.am
Add 'packages/test-simple/' from commit '75eea25bae04d8e5e3e835a2770f02f0ff4602c4'
[gnu-emacs-elpa] / packages / test-simple / Makefile.am
diff --git a/packages/test-simple/Makefile.am b/packages/test-simple/Makefile.am
new file mode 100644 (file)
index 0000000..524deb2
--- /dev/null
@@ -0,0 +1,46 @@
+# Note: This makefile include remake-style target comments.
+# These comments before the targets start with #:
+# remake --tasks to shows the targets and the comments
+
+GIT2CL ?= git2cl
+RUBY   ?= ruby
+
+lisp_files := $(wildcard *.el)
+lisp_LISP = $(lisp_files)
+test_files := $(wildcard test/*.el)
+
+EXTRA_DIST = $(lisp_files) $(test_files) README THANKS README.md COPYING
+
+CHECK_FILES = $(notdir $(test_files:.el=.run))
+
+
+check: $(test-files)
+       $(MAKE) -C test check
+
+README: README.textile
+       ln -s README.md README
+
+PHONY=check clean dist distclean test check-short check-terse install-short
+
+if MAINTAINER_MODE
+
+ChangeLog:
+       git log --pretty --numstat --summary | $(GIT2CL) > $@
+
+ACLOCAL_AMFLAGS=-I .
+
+endif
+
+#: Run all tests
+test: check
+
+check-short:
+       $(MAKE) -C test check 2>&1  | ruby make-check-filter.rb
+
+#: Run all tests without and show just the failure lines
+check-terse:
+       $(MAKE) check 2>&1  | $(RUBY) make-check-filter.rb | grep failure
+
+#: Run "make install"
+install-short:
+       $(MAKE) install 2>&1  | $(RUBY) make-check-filter.rb