File tree Expand file tree Collapse file tree 8 files changed +739
-64
lines changed Expand file tree Collapse file tree 8 files changed +739
-64
lines changed Original file line number Diff line number Diff line change
1
+ * .elc
2
+ /* -autoloads.el
3
+ /config.mk
Original file line number Diff line number Diff line change 1
1
-include config.mk
2
+ include default.mk
2
3
3
- PKG = package-build
4
-
5
- ELS = package-recipe.el
6
- ELS += package-build-badges.el
7
- ELS += $(PKG ) .el
8
- ELS += package-recipe-mode.el
9
- ELCS = $(ELS:.el=.elc )
10
-
11
- DEPS =
12
-
13
- EMACS ?= emacs
14
- EMACS_ARGS ?=
15
-
16
- LOAD_PATH ?= $(addprefix -L ../,$(DEPS ) )
17
- LOAD_PATH += -L .
4
+ .PHONY : test
18
5
19
6
all : lisp
20
7
21
8
help :
22
- $(info make [all|lisp] - generate byte-code and autoloads)
9
+ $(info make all - generate byte-code and autoloads)
10
+ $(info make lisp - generate byte-code and autoloads)
11
+ $(info make test - run tests)
12
+ $(info make demo - run tests showing their documentation)
23
13
$(info make clean - remove generated files)
24
14
@printf " \n"
25
15
26
16
lisp : $(ELCS ) loaddefs check-declare
17
+ @$(MAKE ) -C test lisp
27
18
28
19
loaddefs : $(PKG ) -autoloads.el
29
20
@@ -36,7 +27,13 @@ check-declare:
36
27
@$(EMACS ) -Q --batch $(EMACS_ARGS ) $(LOAD_PATH ) \
37
28
--eval " (check-declare-directory default-directory)"
38
29
39
- CLEAN = $(ELCS ) $(PKG ) -autoloads.el
30
+ test :
31
+ @$(MAKE ) -C test test
32
+
33
+ demo :
34
+ @$(MAKE ) -C test demo
35
+
36
+ CLEAN = $(ELCS ) $(PKG ) -autoloads.el test/$(PKG ) -tests.elc
40
37
41
38
clean :
42
39
@printf " Cleaning...\n"
Original file line number Diff line number Diff line change
1
+ TOP := $(dir $(lastword $(MAKEFILE_LIST ) ) )
2
+
3
+ PKG = package-build
4
+
5
+ ELS = package-recipe.el
6
+ ELS += package-build-badges.el
7
+ ELS += package-build.el
8
+ ELS += package-recipe-mode.el
9
+ ELCS = $(ELS:.el=.elc )
10
+
11
+ DEPS =
12
+
13
+ VERSION ?= $(shell test -e $(TOP ) .git && git describe --tags --abbrev=0 | cut -c2-)
14
+
15
+ EMACS ?= emacs
16
+ EMACS_ARGS ?=
17
+
18
+ LOAD_PATH ?= $(addprefix -L $(TOP ) ../,$(DEPS ) )
19
+ LOAD_PATH += -L $(TOP )
20
+
21
+ BATCH = $(EMACS ) -Q --batch $(EMACS_ARGS ) $(LOAD_PATH )
Original file line number Diff line number Diff line change 32
32
33
33
; ;; Code:
34
34
35
- (defvar package-build-stable )
36
35
(defvar package-build-badge-data )
37
36
38
37
(defun package-build--write-badge-image ( name version target-dir
39
38
&optional archive color )
40
39
" Make badge svg file.
41
40
This is essentially a copy of `elpaa--make-badge' ."
42
41
(let* ((file (expand-file-name (concat name " -badge.svg" ) target-dir))
43
- (left (or archive (car package-build-badge-data)))
42
+ (left (or archive (car package-build-badge-data) " myElpa " ))
44
43
(right (url-hexify-string version))
45
- (color (or color (cadr package-build-badge-data)))
44
+ (color (or color (cadr package-build-badge-data) " #ff491b " ))
46
45
(lw (package-build-badge--string-width left))
47
46
(rw (package-build-badge--string-width right))
48
47
(pad (package-build-badge--string-width " x" ))
You can’t perform that action at this time.
0 commit comments