2015-06-12 23:22:33 +08:00
|
|
|
EMACS=emacs
|
2016-03-26 01:37:48 +08:00
|
|
|
CACHE_DIR="private/cache/`hostname`/`emacs --version | grep -o '2[0-9]\.[0-9]'`"
|
|
|
|
REPO_URL="https://github.com/hlissner"
|
2014-12-06 06:28:03 +08:00
|
|
|
|
2016-03-26 13:21:05 +08:00
|
|
|
all: install autoloads bootstrap.elc
|
2015-01-24 12:57:42 +08:00
|
|
|
|
2016-03-26 13:21:05 +08:00
|
|
|
install: autoloads bootstrap.elc
|
|
|
|
@cask install 2>&1
|
|
|
|
|
|
|
|
# If you keep emacs open while running this, run narf/reload afterwards
|
2016-03-26 01:37:48 +08:00
|
|
|
update: autoloads _update bootstrap.elc
|
2014-12-06 06:28:03 +08:00
|
|
|
|
2016-03-26 01:37:48 +08:00
|
|
|
autoloads:
|
|
|
|
@$(EMACS) --script scripts/generate-autoloads.el 2>&1
|
|
|
|
|
|
|
|
compile: autoloads bootstrap.elc
|
|
|
|
@$(EMACS) --batch -f batch-byte-compile 2>&1 {core,modules,modules/contrib,private}/*.el {core,modules}/defuns/*.el
|
2015-12-23 09:12:51 +08:00
|
|
|
|
2016-02-26 22:37:20 +08:00
|
|
|
snippets:
|
2016-03-26 01:37:48 +08:00
|
|
|
@[ -d private/snippets ] || git clone $(REPO_URL)/emacs-snippets private/snippets
|
2016-02-26 22:37:20 +08:00
|
|
|
|
2016-03-26 01:37:48 +08:00
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -rf auto-save-list recentf places ido.last async-bytecomp.log elpa tramp projectile-bookmarks.eld projectile.cache company-statistics-cache.el var semanticdb anaconda-mode
|
|
|
|
@rm -f *.elc {core,modules,private,contrib}/*.elc {core,modules}/defuns/*.elc
|
|
|
|
|
|
|
|
reset:
|
|
|
|
@rm -fr $(CACHE_DIR)/{ltxpng,pcache,undo}
|
|
|
|
@mkdir -p $(CACHE_DIR)/{ltxpng,pcache,undo}
|
|
|
|
rm -f "$(CACHE_DIR)/workgroups/*"
|
|
|
|
|
|
|
|
|
|
|
|
%.elc: %.el
|
|
|
|
@$(EMACS) --batch -f batch-byte-compile 2>&1 $<
|
|
|
|
|
|
|
|
_update:
|
|
|
|
@cask update 2>&1
|
|
|
|
|
|
|
|
.PHONY: all
|