File tree 1 file changed +43
-0
lines changed
1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This Makefile follows the advice in: https://tech.davis-hansson.com/p/make/
2
+
3
+ SHELL := bash
4
+ .ONESHELL :
5
+ .SHELLFLAGS := -eu -o pipefail -O inherit_errexit -c
6
+ .DELETE_ON_ERROR :
7
+ MAKEFLAGS += --warn-undefined-variables
8
+ MAKEFLAGS += --no-builtin-rules
9
+
10
+ ifeq ($(origin .RECIPEPREFIX ) , undefined)
11
+ > $(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later)
12
+ endif
13
+ .RECIPEPREFIX = >
14
+
15
+ help :
16
+ > echo "Available targets :"
17
+ > printf ' % s\n' $$(grep -P --only-matching '^[\w-]+(?= :)' Makefile)
18
+ .PHONY : help
19
+ .SILENT : help
20
+
21
+ .out :
22
+ > mkdir -p .out
23
+
24
+ clean :
25
+ > rm -rf .out
26
+ .PHONY : clean
27
+
28
+ lint :
29
+ > deno lint
30
+ .PHONY : lint
31
+
32
+ check-format :
33
+ > deno fmt --check
34
+ .PHONY : check-format
35
+
36
+ apply-format :
37
+ > deno fmt
38
+ .PHONY : auto-format-files
39
+
40
+ test :
41
+ > deno test
42
+ .PHONY : test
43
+
You can’t perform that action at this time.
0 commit comments