File tree Expand file tree Collapse file tree 2 files changed +17
-15
lines changed Expand file tree Collapse file tree 2 files changed +17
-15
lines changed Original file line number Diff line number Diff line change 1
- M := .cache/.makes
2
- $(shell [ -d $M ] || git clone -q https ://github.com/makeplus/makes $M)
1
+ M := .cache/makes
2
+ M-COMMIT ?= 683675d4c45f90f40215399ebd319805877999c9
3
+ $(shell [ -d $M ] || ( \
4
+ git clone -q https ://github.com/makeplus/makes $M && \
5
+ git -C $M reset -q --hard $(M-COMMIT)))
6
+ ifneq ($(shell git -C $M rev-parse $(M-COMMIT ) ) ,\
7
+ $(shell git -C $M rev-parse HEAD))
8
+ $(error $M is not at the correct commit : $(M-COMMIT ) )
9
+ endif
10
+
3
11
include $M/init.mk
4
12
include $M/go.mk
5
- include $M/ys.mk
6
-
7
- # Print Makefile targets summary
8
- default ::
9
-
10
- $(GO-CMDS ) :: $(GO )
11
- go $@ $A
12
-
13
- ys-test : $(YS )
14
- prove -v test/
13
+ SHELL-NAME := go-yaml
14
+ include $M/shell.mk
15
15
16
16
distclean :
17
- $(RM ) -r .cache
17
+ $(RM ) -r $( ROOT ) / .cache
Original file line number Diff line number Diff line change 168
168
## Testing with ` make `
169
169
170
170
Running ` make test ` in this directory should just work.
171
- You don't need to have ` go ` installed and even if you do the Makefile will
171
+ You don't need to have ` go ` installed and even if you do the ` GNUmakefile ` will
172
172
ignore it and setup / cache its own version under ` .cache/ ` .
173
173
174
174
The only things you need are:
@@ -182,7 +182,9 @@ Some `make` commands are:
182
182
183
183
* ` make test `
184
184
* ` make test GO-VERSION=1.2.34 `
185
- * ` make distclean ` - Remove ` .cache/ `
185
+ * ` make shell ` Start a shell with the local ` go ` environment
186
+ * ` make shell GO-VERSION=1.2.34 `
187
+ * ` make distclean ` - Removes ` .cache/ `
186
188
187
189
188
190
## License
You can’t perform that action at this time.
0 commit comments