File tree Expand file tree Collapse file tree 1 file changed +66
-0
lines changed Expand file tree Collapse file tree 1 file changed +66
-0
lines changed Original file line number Diff line number Diff line change
1
+ -include config.mk
2
+
3
+ .PHONY : test
4
+
5
+ all : lisp
6
+
7
+ PKG = rust-mode
8
+
9
+ EMACS ?= emacs
10
+ EMACS_ARGS ?=
11
+
12
+ ELS = rust-mode.el
13
+ ELCS = $(ELS:.el=.elc )
14
+
15
+ DEPS =
16
+
17
+ LOAD_PATH ?= $(addprefix -L ../,$(DEPS ) )
18
+ LOAD_PATH += -L .
19
+
20
+ lisp : $(ELCS ) loaddefs
21
+
22
+ % .elc : % .el
23
+ @printf " Compiling $<\n"
24
+ @$(EMACS ) -Q --batch $(EMACS_ARGS ) \
25
+ $(LOAD_PATH ) --funcall batch-byte-compile $<
26
+
27
+ test :
28
+ @$(EMACS ) -Q --batch -L . -l rust-mode.el \
29
+ -l rust-mode-tests.el -f ert-run-tests-batch-and-exit
30
+
31
+ CLEAN = $(ELCS ) $(PKG ) -autoloads.el
32
+
33
+ clean :
34
+ @printf " Cleaning...\n"
35
+ @rm -rf $(CLEAN )
36
+
37
+ loaddefs : $(PKG ) -autoloads.el
38
+
39
+ define LOADDEFS_TMPL
40
+ ;;; $(PKG ) -autoloads.el --- automatically extracted autoloads
41
+ ;;
42
+ ;;; Code:
43
+ (add-to-list 'load-path (directory-file-name \
44
+ (or (file-name-directory # $$) (car load-path))))
45
+
46
+ ;; Local Variables:
47
+ ;; version-control: never
48
+ ;; no-byte-compile: t
49
+ ;; no-update-autoloads: t
50
+ ;; End:
51
+ ;;; $(PKG ) -autoloads.el ends here
52
+ endef
53
+ export LOADDEFS_TMPL
54
+ # '
55
+
56
+ $(PKG ) -autoloads.el : $(ELS )
57
+ @printf " Generating $@ \n"
58
+ @printf " %s" " $$ LOADDEFS_TMPL" > $@
59
+ @$(EMACS ) -Q --batch --eval " (progn\
60
+ (setq make-backup-files nil)\
61
+ (setq vc-handled-backends nil)\
62
+ (setq default-directory (file-truename default-directory))\
63
+ (setq generated-autoload-file (expand-file-name \" $@ \" ))\
64
+ (setq find-file-visit-truename t)\
65
+ (update-directory-autoloads default-directory))"
66
+
You can’t perform that action at this time.
0 commit comments