Add "make compile" and "make cask" shell commands

Use "make cask" to install the dependencies.
Use "make compile" to byte-compile counsel-projectile.el.
This commit is contained in:
Oleh Krehel 2016-04-14 12:25:16 +02:00
parent 8d2f806d20
commit 58d75804ff
5 changed files with 36 additions and 0 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
*.elc
/.cask/

10
Cask Normal file
View file

@ -0,0 +1,10 @@
(source gnu)
(source melpa)
(package-file "counsel-projectile.el")
(files "*.el")
(development
(depends-on "counsel")
(depends-on "projectile"))

16
Makefile Normal file
View file

@ -0,0 +1,16 @@
emacs ?= emacs
CASK = ~/.cask/bin/cask
BEMACS = $(emacs) -batch -l targets/elpa.el
all: compile
cask:
$(CASK)
compile:
$(BEMACS) -l targets/compile.el
.PHONY: all compile clean cask
clean:
rm -f *.elc

3
targets/compile.el Normal file
View file

@ -0,0 +1,3 @@
(setq files '("counsel-projectile.el"))
(setq byte-compile--use-old-handlers nil)
(mapc #'byte-compile-file files)

6
targets/elpa.el Normal file
View file

@ -0,0 +1,6 @@
(setq package-user-dir
(expand-file-name (format ".cask/%s/elpa" emacs-version)))
(package-initialize)
(message "ELPA dir: %S" package-user-dir)
(add-to-list 'load-path default-directory)