forked from abo-abo/oremacs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (29 loc) · 962 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
27
28
29
30
31
32
33
34
35
36
37
38
39
emacs ?= emacs
BASEDIR := $(shell pwd)
profile:
$(emacs) -Q -l git/profile-dotemacs/profile-dotemacs.el \
--eval "(setq profile-dotemacs-file \
(setq load-file-name \"$(abspath init.el)\"))" \
-f profile-dotemacs
install: upgrade
cd git/org-mode && make compile 2>&1 | tee -a ../../etc/log
cd $(BASEDIR) && mkdir -p personal
yes n | cp -i etc/init-template.el personal/personal-init.el
yes n | cp -i etc/ispell_dict personal/ispell_dict
yes n | cp -i etc/abbrev_defs personal/abbrev_defs
yes n | cp -ri etc/org .
make run
bare:
$(emacs) -Q -l etc/bareinit.el
pull:
echo "-*- mode: compilation -*-" > etc/log
git pull 2>&1 | tee -a etc/log
git submodule init 2>&1 | tee -a etc/log
git submodule update 2>&1 | tee -a etc/log
upgrade: pull
cd $(BASEDIR) && $(emacs) -batch -l packages.el 2>&1 | tee -a etc/log
up: upgrade
$(emacs) -Q -l init.el
run:
$(emacs) -Q -l init.el
.PHONY: profile install install-git upgrade run up pull