Browse Source

Add Makefile that has test target

pull/1/head
10sr 9 years ago
parent
commit
2a58bef2c7
1 changed files with 20 additions and 0 deletions
  1. +20
    -0
      Makefile

+ 20
- 0
Makefile View File

@@ -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

Loading…
Cancel
Save