Cleaner makefile + add make clean-wg for startup emergencies

This commit is contained in:
Henrik Lissner 2015-12-10 22:02:00 -05:00
parent 148a6d2ed6
commit 7399511374

View File

@ -12,17 +12,20 @@ update: autoloads
@echo "Compiling certain scripts"
@emacs -Q --batch -f batch-byte-compile init-load-path.el core/core.el core/core-os-osx.el contrib/*.el 2>&1 | sed 's/^/ /'
clean: clean-extras clean-elc
clean-elc:
clean:
@echo "Cleaning *.elc and derelict emacs files"
@rm -f *.elc {core,modules,private,contrib}/*.elc {core,modules}/lib/*.elc
@rm -rf auto-save-list recentf places ido.last async-bytecomp.log elpa projectile-bookmarks.eld projectile.cache company-statistics-cache.el tramp smex-items
@rm -rf var semanticdb anaconda-mode
clean-extras:
@rm -rf auto-save-list recentf places ido.last async-bytecomp.log elpa projectile-bookmarks.eld projectile.cache company-statistics-cache.el tramp smex-items semanticdb var anaconda-mode
clean-wg:
@echo "Removing default session"
@rm -f "private/cache/`hostname`/`emacs --version | grep -o '2[0-9]\.[0-9]'`/wg-default"
autoloads:
@echo "Generating autoloads"
@emacs --script scripts/generate-autoloads.el 2>&1 | sed 's/^/ /'
compile: autoloads
emacs --script scripts/byte-compile.el
@echo "Byte-compiling .emacs.d"
emacs --script scripts/byte-compile.el | sed 's/^/ /'