Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ba553eca67
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 34 lines (26 sloc) 0.75 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
TARGET := $(HOME)/.emacs.d
EMACS := emacs

.PHONY: all compile install clean_dir clean

# makefile to install my Emacs
all: clean compile install

# check out submodules, install vendor files, and compile JS2 mode
compile:
-mkdir -p .tmp/desktops
-mkdir -p .tmp/autosaves
@git submodule sync
@git submodule update --init
@-cd vendor/distel && make
@-cd vendor/magit && make
@-cd vendor/js2-mode && make
@-cd vendor/web-mode && $(EMACS) -batch -f batch-byte-compile *.el
@-npm install

# make sure we're linked into the $USER Emacs sitefile
install: clean_dir
ln -sf $(CURDIR) $(TARGET)

clean_dir:
rm -rf $(TARGET)

# remove old directory and clean files
clean: clean_dir
find . -name "*.elc" -delete

clean_all: clean
git clean -qfxd
Something went wrong with that request. Please try again.