-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
39 lines (30 loc) · 890 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
print_msg = @printf "\n\033[1;34m***%s***\033[0m\n" "$(1)"
all: build test
build:
$(call print_msg, Building... )
bsb -make-world
watch:
$(call print_msg, Building & Watching... )
bsb -w -make-world
test:
$(call print_msg, Running tests... )
nosetests ./tests
try:
make build
@echo "\n"
cd ./tests/root_for_testing; \
add-reason setup src/myCode
make reset-mock
clean:
$(call print_msg, Cleaning... )
make reset-mock
bsb -clean-world
reset-mock:
rm -f ./tests/root_for_testing/bsconfig.json
rm -f ./tests/root_for_testing/.merlin
rm -rf ./tests/root_for_testing/lib
rm -rf ./tests/root_for_testing/src/**/*.bs.js
rm -f ./tests/root_for_testing/node_modules/*
touch ./tests/root_for_testing/node_modules/persist.lock
cp ./tests/root_for_testing/package.empty_scripts.json ./tests/root_for_testing/package.json
.PHONY: all build watch test try clean reset-mock