2015-06-12 17:22:33 +02:00
|
|
|
EMACS=emacs
|
2016-03-25 13:37:48 -04:00
|
|
|
CACHE_DIR="private/cache/`hostname`/`emacs --version | grep -o '2[0-9]\.[0-9]'`"
|
|
|
|
REPO_URL="https://github.com/hlissner"
|
2014-12-05 17:28:03 -05:00
|
|
|
|
2016-05-23 17:07:59 -04:00
|
|
|
all: install autoloads init.elc
|
2015-01-23 23:57:42 -05:00
|
|
|
|
2016-05-23 17:07:59 -04:00
|
|
|
# If you run either of these with emacs open, run doom-reload afterwards
|
|
|
|
install: autoloads _install init.elc
|
2016-05-28 21:51:21 -04:00
|
|
|
update: autoloads _update core/core.elc init.elc
|
2014-12-05 17:28:03 -05:00
|
|
|
|
2016-03-25 13:37:48 -04:00
|
|
|
autoloads:
|
2016-05-23 17:07:59 -04:00
|
|
|
@$(EMACS) --batch -l init.el --eval '(doom-reload-autoloads)' 2>&1
|
2016-03-25 13:37:48 -04:00
|
|
|
|
2016-02-26 09:37:20 -05:00
|
|
|
snippets:
|
2016-03-25 13:37:48 -04:00
|
|
|
@[ -d private/snippets ] || git clone $(REPO_URL)/emacs-snippets private/snippets
|
2016-02-26 09:37:20 -05:00
|
|
|
|
2016-03-25 13:37:48 -04:00
|
|
|
clean:
|
2016-05-23 17:07:59 -04:00
|
|
|
@rm -rf auto-save-list recentf places ido.last async-bytecomp.log elpa tramp
|
|
|
|
@rm -rf projectile-bookmarks.eld projectile.cache company-statistics-cache.el
|
|
|
|
@rm -rf var semanticdb anaconda-mode
|
2016-03-25 13:37:48 -04:00
|
|
|
@rm -f *.elc {core,modules,private,contrib}/*.elc {core,modules}/defuns/*.elc
|
|
|
|
|
2016-05-23 17:07:59 -04:00
|
|
|
clean-cache:
|
2016-03-27 00:50:08 -04:00
|
|
|
@find $(CACHE_DIR) -type f -maxdepth 1 -delete
|
|
|
|
@rm -f $(CACHE_DIR)/{workgroups,pcache,ltxpng,backup}/*
|
2016-03-25 13:37:48 -04:00
|
|
|
|
2016-05-23 17:07:59 -04:00
|
|
|
########################################
|
2016-03-25 13:37:48 -04:00
|
|
|
|
|
|
|
%.elc: %.el
|
2016-05-23 17:07:59 -04:00
|
|
|
@$(EMACS) --batch -l init.el -f batch-byte-compile 2>&1 $<
|
2016-03-25 13:37:48 -04:00
|
|
|
|
|
|
|
_update:
|
|
|
|
@cask update 2>&1
|
2016-05-28 21:51:21 -04:00
|
|
|
@rm -f init.elc core/core.elc
|
2016-03-25 13:37:48 -04:00
|
|
|
|
2016-04-08 01:44:10 -04:00
|
|
|
_install:
|
|
|
|
@cask install 2>&1
|
2016-05-28 21:51:21 -04:00
|
|
|
@rm -f init.elc core/core.elc
|
2016-05-20 09:24:32 -04:00
|
|
|
@mkdir -p $(CACHE_DIR)/{undo,backup,workgroups}
|
2016-04-08 01:44:10 -04:00
|
|
|
|
2016-03-25 13:37:48 -04:00
|
|
|
.PHONY: all
|