doomemacs/Makefile

31 lines
1 KiB
Makefile
Raw Normal View History

2015-06-12 17:22:33 +02:00
EMACS=emacs
2014-12-05 17:28:03 -05:00
2015-06-19 23:57:59 +02:00
all: update
2015-01-23 23:57:42 -05:00
2015-06-20 22:34:02 +02:00
update: autoloads
2015-11-24 20:51:46 -05:00
@echo "Updating repo"
2015-11-25 06:00:49 -05:00
@git pull 2>&1 | sed 's/^/ /'
@cask install --verbose 2>&1 | sed 's/^/ /'
2015-11-24 20:51:46 -05:00
@echo "Updating outdated plugins"
2015-11-25 06:00:49 -05:00
@cask update --verbose 2>&1 | sed 's/^/ /'
2015-11-24 20:51:46 -05:00
@echo "Compiling certain scripts"
2015-12-10 16:15:23 -05:00
@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/^/ /'
2014-12-05 17:28:03 -05:00
clean:
@echo "Cleaning *.elc and derelict emacs files"
2015-11-24 20:51:46 -05:00
@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
2015-06-12 17:22:33 +02:00
clean-wg:
@echo "Removing default session"
@rm -f "private/cache/`hostname`/`emacs --version | grep -o '2[0-9]\.[0-9]'`/wg-default"
2015-06-12 17:22:33 +02:00
autoloads:
2015-11-24 20:51:46 -05:00
@echo "Generating autoloads"
@emacs --script scripts/generate-autoloads.el 2>&1 | sed 's/^/ /'
2015-06-19 23:57:59 +02:00
compile: autoloads
@echo "Byte-compiling .emacs.d"
emacs --script scripts/byte-compile.el | sed 's/^/ /'