36 lines
999 B
Makefile
36 lines
999 B
Makefile
EMACS=emacs
|
|
CACHE_DIR="private/cache/`hostname`/`emacs --version | grep -o '2[0-9]\.[0-9]'`"
|
|
REPO_URL="https://github.com/hlissner"
|
|
|
|
all: update
|
|
|
|
update: autoloads _update bootstrap.elc
|
|
|
|
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
|
|
|
|
snippets:
|
|
@[ -d private/snippets ] || git clone $(REPO_URL)/emacs-snippets private/snippets
|
|
|
|
|
|
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
|