-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (36 loc) · 803 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
html :=
clean :=
clobber :=
.PHONY: all
all:
include mk/debug.mk
include mk/readme.mk
include mk/node.mk
include mk/src.mk
include mk/watch.mk
all: node_modules $(html) compile
.PHONY: clean
clean:
rm -rf $(clean)
$(MAKE) -C test clean
.PHONY: clobber
clobber: clean
rm -rf $(clobber)
.PHONY: test
test: node_modules
$(MAKE) -C test
define help :=
all -- Just compile all
clean -- rm all compiled targets
clobber -- Clean + rm node_modules
test -- Run tests w/ mocha. Or
$$ make test TEST_OPTS='-g pattern'
compile -- compile src/ to lib/
npm-view -- View a would-be npm-package w/o uploading it to the registry
npm -- Publish a package to npm registry
watch -- Use watchman to auto-run 'compile' target
endef
.PHONY: help
help:
@:
$(info $(help))