forked from skeeto/youtube-dl-emacs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
22 lines (16 loc) · 772 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.POSIX:
EMACS = emacs
all: youtube-dl-loaddefs.el youtube-dl.elc youtube-dl-play.elc youtube-dl-view.elc youtube-dl-w3m.elc
youtube-dl-loaddefs.el: youtube-dl.el youtube-dl-play.el youtube-dl-view.el youtube-dl-w3m.el
$(EMACS) -batch -Q --script make-loaddefs.el $@ $^
simulate: youtube-dl.elc
$(EMACS) -Q -L . -l tests/youtube-dl-simulate.el
clean:
rm -f *.elc youtube-dl-loaddefs.el simulation.db simulation.db.tmp
youtube-dl.elc: youtube-dl.el youtube-dl-loaddefs.el
youtube-dl-play.elc: youtube-dl-play.el youtube-dl.elc
youtube-dl-view.elc: youtube-dl-view.el youtube-dl.elc
youtube-dl-w3m.elc: youtube-dl-w3m.el youtube-dl.elc
.SUFFIXES: .el .elc
.el.elc:
$(EMACS) -l youtube-dl-loaddefs.el --eval '(push "." load-path)' -batch -Q -f batch-byte-compile $<