-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
44 lines (35 loc) · 840 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
40
41
42
43
44
SHELL = /bin/sh
EMACS = emacs
FILES = $(wildcard *.el)
PROFILER =
LIBS =
ELCFILES = $(FILES:.el=.elc)
.PHONY: all compile compile-batch clean emacs term terminal
all: compile
compile: $(ELCFILES)
.depend: $(FILES)
@echo Compute dependencies
@rm -f .depend
@for f in $(FILES); do \
sed -n "s/^.*(require '\(term+[^ )]*\)).*$$/$${f}c: \1.elc/p" $$f >> .depend;\
done
-include .depend
$(ELCFILES): %.elc: %.el
$(EMACS) --batch -Q -L . $(LIBS) \
-f batch-byte-compile $<
clean:
rm -f *~
rm -f \#*\#
rm -f *.elc
rm -f .depend
emacs:
$(EMACS) -Q -L . $(LIBS) \
--eval "(require 'term+)" \
--eval "(require 'xterm-256color)" \
--eval "(call-interactively 'term)" &
term: terminal
terminal:
$(EMACS) -nw -Q -L . $(LIBS) \
--eval "(require 'term+)" \
--eval "(require 'xterm-256color)" \
--eval "(call-interactively 'term)"