-
-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathMakefile
More file actions
62 lines (51 loc) · 1.66 KB
/
Makefile
File metadata and controls
62 lines (51 loc) · 1.66 KB
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
-include config.mk
include default.mk
.PHONY: test
all: lisp
help:
$(info make all -- Generate lisp and manual)
$(info make lisp -- Generate byte-code and autoloads)
$(info make redo -- Re-generate byte-code and autoloads)
$(info make stats -- Generate statistics)
$(info make stats-upload -- Publish statistics)
$(info make test -- Run tests)
$(info make test-interactive -- Run tests interactively)
$(info make clean -- Remove most generated files)
@printf "\n"
lisp: $(ELCS) autoloads check-declare
redo: clean lisp
stats:
@$(MAKE) -C docs stats
stats-upload:
@$(MAKE) -C docs stats-upload
test: lisp
@$(MAKE) -C test test
test-interactive:
@$(MAKE) -C test test-interactive
clean: clean-lisp clean-docs clean-test
clean-lisp:
@printf " Cleaning *...\n"
@rm -rf $(ELCS) $(PKG)-autoloads.el
clean-docs:
@$(MAKE) -C docs clean
clean-test:
@$(MAKE) -C test clean
autoloads: $(PKG)-autoloads.el
%.elc: %.el
@printf "Compiling $<\n"
@$(EMACS_BATCH) --funcall batch-byte-compile $<
check-declare:
@printf " Checking function declarations\n"
@$(EMACS_BATCH) --eval "(check-declare-directory default-directory)"
$(PKG)-autoloads.el: $(ELS)
@printf " Creating $@\n"
@$(EMACS_BATCH) --load autoload --eval "\
(let* ((file (expand-file-name \"$@\"))\
(generated-autoload-file file)\
(coding-system-for-write 'utf-8-emacs-unix)\
(backup-inhibited t)\
(version-control 'never)\
(inhibit-message t))\
(write-region (autoload-rubric file \"package\" t) nil file)\
(update-directory-autoloads default-directory))" \
2>&1 | sed "/^Package autoload is deprecated$$/d"