File tree Expand file tree Collapse file tree 6 files changed +1377
-72
lines changed Expand file tree Collapse file tree 6 files changed +1377
-72
lines changed Original file line number Diff line number Diff line change 1
1
* .elc
2
2
* ~
3
- CMakeCache.txt
4
- CMakeFiles /
5
- /Makefile
6
- cmake_install.cmake
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ Tips for contributors
2
2
---------------------
3
3
4
4
* In your local repository, ensure that everything compiles by ** running
5
- ` cmake . && make` ** (this will launch byte compilation of lisp files and regression
5
+ ` make ` ** (this will launch byte compilation of lisp files and regression
6
6
tests).
7
7
* You are then ready to make a ** pull request** . Please make pull requests
8
8
** against ` master ` ** .
@@ -30,6 +30,9 @@ description on GitHub.
30
30
31
31
** ./LICENSE.md** : the [ GPLv2] license.
32
32
33
+ ** ./makem.sh** and ** ./Makefile** : build scripts for linting and testing this
34
+ project, copied from [ makem] .
35
+
33
36
** ./* .el** : the [ Emacs] ledger-mode lisp code.
34
37
35
38
** ./doc/** : documentation, and tools for generating documents such as the * pdf*
@@ -47,3 +50,4 @@ manual.
47
50
[ Emacs ] : http://www.gnu.org/software/emacs/
48
51
[ GPLv2 ] : http://www.gnu.org/licenses/gpl-2.0.html
49
52
[ github ] : https://github.com/ledger/ledger-mode/
53
+ [ makem ] : https://github.com/alphapapa/makem.sh/
Original file line number Diff line number Diff line change
1
+ # * makem.sh/Makefile --- Script to aid building and testing Emacs Lisp packages
2
+
3
+ # URL: https://github.com/alphapapa/makem.sh
4
+ # Version: 0.5
5
+
6
+ # * Arguments
7
+
8
+ # For consistency, we use only var=val options, not hyphen-prefixed options.
9
+
10
+ # NOTE: I don't like duplicating the arguments here and in makem.sh,
11
+ # but I haven't been able to find a way to pass arguments which
12
+ # conflict with Make's own arguments through Make to the script.
13
+ # Using -- doesn't seem to do it.
14
+
15
+ ifdef install-deps
16
+ INSTALL_DEPS = "--install-deps"
17
+ endif
18
+ ifdef install-linters
19
+ INSTALL_LINTERS = "--install-linters"
20
+ endif
21
+
22
+ ifdef sandbox
23
+ ifeq ($(sandbox), t)
24
+ SANDBOX = --sandbox
25
+ else
26
+ SANDBOX = --sandbox=$(sandbox)
27
+ endif
28
+ endif
29
+
30
+ ifdef debug
31
+ DEBUG = "--debug"
32
+ endif
33
+
34
+ # ** Verbosity
35
+
36
+ # Since the "-v" in "make -v" gets intercepted by Make itself, we have
37
+ # to use a variable.
38
+
39
+ verbose = $(v )
40
+
41
+ ifneq (,$(findstring vvv,$(verbose ) ) )
42
+ VERBOSE = "-vvv"
43
+ else ifneq (,$(findstring vv,$(verbose)))
44
+ VERBOSE = "-vv"
45
+ else ifneq (,$(findstring v,$(verbose)))
46
+ VERBOSE = "-v"
47
+ endif
48
+
49
+ # * Rules
50
+
51
+ # TODO: Handle cases in which "test" or "tests" are called and a
52
+ # directory by that name exists, which can confuse Make.
53
+
54
+ % :
55
+ @./makem.sh $(DEBUG ) $(VERBOSE ) $(SANDBOX ) $(INSTALL_DEPS ) $(INSTALL_LINTERS ) $(@ )
56
+
57
+ .DEFAULT : init
58
+ init :
59
+ @./makem.sh $(DEBUG ) $(VERBOSE ) $(SANDBOX ) $(INSTALL_DEPS ) $(INSTALL_LINTERS )
You can’t perform that action at this time.
0 commit comments