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:
parent
8d2f806d20
commit
58d75804ff
5 changed files with 36 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1 +1,2 @@
|
|||
*.elc
|
||||
/.cask/
|
||||
|
|
|
|||
10
Cask
Normal file
10
Cask
Normal 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
16
Makefile
Normal 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
3
targets/compile.el
Normal 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
6
targets/elpa.el
Normal 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)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue