forked from legoscia/emacs-jabber
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (30 loc) · 1015 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
.phony: all autoload compile lint clean
build: autoload compile
dev: autoload compile lint
autoload:
emacs -q --batch --eval="(require 'package)" \
--eval="(package-generate-autoloads \"jabber\" \"lisp\")"
compile:
emacs -q -Q -L . -L lisp -L lisp/jabber-fallback-lib --batch \
--eval="(setq print-length nil load-prefer-newer t)" \
-f batch-byte-compile lisp/*.el
lint-check-declare:
for file in lisp/*.el ; do \
emacs -q -Q --batch --eval="(check-declare-file \"$$file\")" ; \
done
lint-checkdoc:
for file in lisp/*.el ; do \
emacs -q -Q --batch --eval="(checkdoc-file \"$$file\")" ; \
done
lint-package-lint:
emacs -Q --batch \
--eval='(package-initialize)' --eval="(require 'package-lint)" \
-f 'package-lint-batch-and-exit' $(wildcard lisp/*.el)
lint-relint:
emacs -Q --batch \
--eval='(package-initialize)' --eval="(require 'relint)" \
-f 'relint-batch' "lisp"
lint: lint-check-declare lint-checkdoc lint-package-lint lint-relint
clean-elc:
-rm lisp/*.elc
clean: clean-elc