forked from zevlg/telega.el
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (28 loc) · 769 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
EMACS=emacs -Q
SERVER_TARGETS=telega-server install
all: telega-server compile
$(SERVER_TARGETS):
$(MAKE) -C server $@
server-reinstall:
$(MAKE) -C server clean
$(MAKE) -C server install
test_el: test.el
$(EMACS) -batch -L . -l etc/telega-make \
-f telega-run-tests
test_server:
$(MAKE) -C server test
test: test_el test_server
EL_SOURCES=$(wildcard telega*.el)
ELC_FILES=$(patsubst %.el,%.elc,$(EL_SOURCES))
%.elc: %.el
$(EMACS) -batch -L . -f package-initialize -f batch-byte-compile $<
elc: $(ELC_FILES)
compile:
$(EMACS) -batch -L . -l etc/telega-make \
-f telega-byte-compile-everything
docs:
$(MAKE) -C docs
clean:
@rm -vf *.elc etc/*.elc docs/*.elc contrib/*.elc
$(MAKE) -C server $@
.PHONY: $(SERVER) clean test docs