-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
26 lines (21 loc) · 997 Bytes
/
Makefile
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
# ----------------------------------------------------------------------------
# S P A C E L P A M A K E F I L E
# ----------------------------------------------------------------------------
MAKEFILE_PATH = $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
BUILD_PATH = $(MAKEFILE_PATH)/build
EMACS_CONFIG_DIR = .emacs.d
EMACS_CONFIG_PATH = $(BUILD_PATH)/$(EMACS_CONFIG_DIR)
EMACS_SCRIPT_FILE = $(SCRIPT_DIR)/spacelpa.el
LOAD_FILES = core/core-versions.el core/core-load-paths.el core/core-dumper.el
SCRIPT_DIR = scripts
.PHONY: clean
clean:
rm -rf $(EMACS_CONFIG_PATH)
$(EMACS_CONFIG_PATH):
git clone "[email protected]:syl20bnr/spacemacs" $(EMACS_CONFIG_PATH)
cd $(EMACS_CONFIG_PATH) && git checkout develop
.PHONY: update
update: $(EMACS_CONFIG_PATH)
HOME=$(BUILD_PATH) emacs -batch \
$(addprefix -l $(EMACS_CONFIG_PATH)/, $(LOAD_FILES)) \
-l $(MAKEFILE_PATH)/$(EMACS_SCRIPT_FILE)