40 lines
1.2 KiB
Makefile
40 lines
1.2 KiB
Makefile
EMACS=emacs
|
|
|
|
all: update
|
|
|
|
update: autoloads
|
|
@echo "Updating repo"
|
|
@git pull 2>&1 | sed 's/^/ /'
|
|
@echo "Updating outdated plugins"
|
|
@cask install 2>&1 | sed 's/^/ /'
|
|
@cask update 2>&1 | sed 's/^/ /'
|
|
@echo "Compiling certain scripts"
|
|
@$(EMACS) -Q --batch -f batch-byte-compile bootstrap.el 2>&1 | sed 's/^/ /'
|
|
|
|
clean: clean-files clean-elc
|
|
|
|
snippets:
|
|
[ -d private/snippets ] || git clone https://github.com/hlissner/emacs-snippets private/snippets
|
|
|
|
autoloads:
|
|
@echo "Generating autoloads"
|
|
@$(EMACS) --script scripts/generate-autoloads.el 2>&1 | sed 's/^/ /'
|
|
|
|
compile: autoloads
|
|
@echo "Byte-compiling .emacs.d"
|
|
@$(EMACS) --script scripts/byte-compile.el | sed 's/^/ /'
|
|
|
|
clean-files:
|
|
@echo "Cleaning derelict emacs files"
|
|
@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
|
|
|
|
clean-elc:
|
|
@echo "Cleaning *.elc"
|
|
@rm -f *.elc {core,modules,private,contrib}/*.elc {core,modules}/lib/*.elc
|
|
|
|
clean-wg:
|
|
@echo "Removing default session"
|
|
@rm -f "private/cache/`hostname`/`emacs --version | grep -o '2[0-9]\.[0-9]'`/wg-default"
|