dotemacs

My Emacs configuration
git clone git://git.entf.net/dotemacs
Log | Files | Refs | LICENSE

Makefile (762B)


      1 CASK = cask
      2 export EMACS ?= emacs
      3 EMACSFLAGS =
      4 
      5 PKGDIR := $(shell EMACS=$(EMACS) $(CASK) package-directory)
      6 
      7 SRCS = $(wildcard *.el)
      8 OBJS = $(SRCS:.el=.elc)
      9 
     10 .PHONY: compile test clean elpa
     11 
     12 all: compile
     13 
     14 elpa-$(EMACS):
     15 	$(CASK) install
     16 	$(CASK) update
     17 	touch $@
     18 
     19 elpa: elpa-$(EMACS)
     20 
     21 elpaclean:
     22 	rm -f elpa*
     23 	rm -rf .cask # Clean packages installed for development
     24 
     25 compile: elpa
     26 	$(CASK) build
     27 
     28 clean:
     29 	rm -f $(OBJS) clojure-mode-autoloads.el
     30 
     31 test: $(PKGDIR)
     32 	$(CASK) exec buttercup
     33 
     34 test-checks:
     35 	$(CASK) exec $(EMACS) --no-site-file --no-site-lisp --batch \
     36 		-l test/test-checks.el ./
     37 
     38 test-bytecomp: $(SRCS:.el=.elc-test)
     39 
     40 %.elc-test: %.el elpa
     41 	$(CASK) exec $(EMACS) --no-site-file --no-site-lisp --batch \
     42 		-l test/clojure-mode-bytecomp-warnings.el $<