doomemacs/Makefile

36 lines
1.1 KiB
Makefile
Raw Normal View History

2015-06-12 23:22:33 +08:00
EMACS=emacs
2014-12-06 06:28:03 +08:00
2015-06-20 05:57:59 +08:00
all: update
2015-01-24 12:57:42 +08:00
2015-06-21 04:34:02 +08:00
update: autoloads
2015-11-25 09:51:46 +08:00
@echo "Updating repo"
2015-11-25 19:00:49 +08:00
@git pull 2>&1 | sed 's/^/ /'
2015-11-25 09:51:46 +08:00
@echo "Updating outdated plugins"
@cask install --verbose 2>&1 | sed 's/^/ /'
2015-11-25 19:00:49 +08:00
@cask update --verbose 2>&1 | sed 's/^/ /'
2015-11-25 09:51:46 +08:00
@echo "Compiling certain scripts"
2016-01-24 09:51:23 +08:00
@$(EMACS) -Q --batch -f batch-byte-compile init-packages.el core/core.el core/core-os-osx.el contrib/*.el 2>&1 | sed 's/^/ /'
2014-12-06 06:28:03 +08:00
clean: clean-files clean-elc
2016-01-24 09:51:23 +08:00
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 projectile-bookmarks.eld projectile.cache company-statistics-cache.el tramp smex-items
@rm -rf var semanticdb anaconda-mode
2015-06-12 23:22:33 +08:00
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"