-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
29 lines (22 loc) · 878 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
EMACS ?= emacs
for_compile := init.el
VERSION := $(shell git describe --always --tags HEAD)
TARBALL := out/100ms_dot_emacs.emacs.d.$(VERSION).tar.gz
## ---------------------------------------------------
all: $(SRC_TARBALL) $(SRC_ZIPBALL) $(TARBALL)
$(TARBALL): $(HOME)/.emacs.d/init.elc
(cd -P $(HOME)/.emacs.d; cd ..;tar -zcf - \
--exclude=.emacs.d/straight/repos \
.emacs.d/.autoloads.el \
.emacs.d/.autoloads.elc \
.emacs.d/init.elc .emacs.d/straight) >$@; ln -sf `basename $@` out/100ms_dot_emacs.emacs.d.latest.tar.gz
$(HOME)/.emacs.d/init.elc: init.elc
cp -v $< $@
init.elc: no-load-path.el
%.elc: %.el
echo "[compile] $<" ;\
$(EMACS) -Q --batch -L . --eval="(require 'no-load-path)" -f batch-byte-compile $<
clean:
-rm out/*.tar.gz init.elc $(HOME)/.emacs.d/init.elc
install:
tar -zxvf out/100ms_dot_emacs.emacs.d.latest.tar.gz -C $(HOME)/