From 2a58bef2c7c7761b39ae68d0f5c71abfc295e868 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Tue, 13 Jan 2015 15:14:53 +0900 Subject: [PATCH] Add Makefile that has test target --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..92ad6f7 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +emacs ?= emacs + +shrc_loadables = sh bash zsh + +.PHONY: all default test emacs + +all: default + +emacs: emacs.el + $(emacs) -q --debug-init --batch --load $< -f my-auto-install-package + + +test: test_el test_shrc + +test_shrc: shrc + sh -exc 'for sh in $(shrc_loadables); do $$sh -n $<; done' + +test_el: emacs.el + $(emacs) -q --debug-init --batch --eval "(setq debug-on-error t)" \ + --load $< --kill