-
Notifications
You must be signed in to change notification settings - Fork 121
/
Makefile
68 lines (57 loc) · 2.32 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
.POSIX:
EMACS = emacs
BATCH = $(EMACS) -batch -Q -L . -L tests
VERSION = 3.4.2
EL = elfeed-csv.el elfeed-curl.el elfeed-db.el elfeed-lib.el \
elfeed-log.el elfeed-show.el elfeed.el xml-query.el \
elfeed-search.el elfeed-link.el
DOC = README.md NEWS.md UNLICENSE elfeed-pkg.el
WEB = web/elfeed-web-pkg.el web/elfeed-web.el web/elfeed.css \
web/elfeed.js web/index.html
TEST = tests/elfeed-db-tests.el tests/elfeed-lib-tests.el \
tests/elfeed-tests.el tests/elfeed-search-tests.el \
tests/elfeed-curl-tests.el tests/xml-query-tests.el
compile: $(EL:.el=.elc) $(TEST:.el=.elc)
check: test
test: $(EL:.el=.elc) $(TEST:.el=.elc)
$(BATCH) -l tests/elfeed-tests.elc -f ert-run-tests-batch
package: elfeed-$(VERSION).tar elfeed-web-$(VERSION).tar
clean:
rm -f *.tar $(EL:.el=.elc) $(TEST:.el=.elc)
virtual: compile
(mkdir -p tmp-$$$$/.elfeed; \
cp ~/.elfeed/index tmp-$$$$/.elfeed/ 2>/dev/null || true; \
trap "rm -rf tmp-$$$$" INT EXIT; \
HOME=$$PWD/tmp-$$$$ $(EMACS) -L . -l elfeed.elc $(ARGS))
elfeed-$(VERSION).tar: $(EL) $(DOC)
rm -rf elfeed-$(VERSION)/
mkdir elfeed-$(VERSION)/
cp $(EL) $(DOC) elfeed-$(VERSION)/
tar cf $@ elfeed-$(VERSION)/
rm -rf elfeed-$(VERSION)/
elfeed-web-$(VERSION).tar: $(WEB)
rm -rf elfeed-web-$(VERSION)/
mkdir elfeed-web-$(VERSION)/
cp $(WEB) elfeed-web-$(VERSION)/
tar cf $@ elfeed-web-$(VERSION)/
rm -rf elfeed-web-$(VERSION)/
elfeed-csv.elc: elfeed-db.elc
elfeed-curl.elc: elfeed-lib.elc elfeed-log.elc
elfeed-db.elc: elfeed-lib.elc
elfeed-show.elc: elfeed.elc elfeed-db.elc elfeed-lib.elc elfeed-search.elc
elfeed-link.elc: elfeed.elc elfeed-search.elc elfeed-show.elc
elfeed.elc: elfeed-lib.elc elfeed-log.elc elfeed-curl.elc elfeed-db.elc \
xml-query.elc
elfeed-search.elc: elfeed.elc elfeed-db.elc elfeed-lib.elc
tests/elfeed-curl-tests.elc: elfeed-lib.elc elfeed-curl.elc
tests/elfeed-db-tests.elc: elfeed.elc elfeed-db.elc elfeed-lib.elc
tests/elfeed-lib-tests.elc: elfeed-lib.elc
tests/elfeed-tests.elc: elfeed.elc elfeed-lib.elc elfeed-curl.elc \
tests/xml-query-tests.elc tests/elfeed-db-tests.elc \
tests/elfeed-lib-tests.elc tests/elfeed-search-tests.elc \
tests/elfeed-curl-tests.elc
tests/elfeed-search-tests.elc: elfeed-search.elc
tests/xml-query-tests.elc: xml-query.elc
.SUFFIXES: .el .elc
.el.elc:
$(BATCH) -f batch-byte-compile $<