-
Notifications
You must be signed in to change notification settings - Fork 86
/
Makefile
67 lines (50 loc) · 1.26 KB
/
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#
# Copyright (c) Flyover Games, LLC
#
SHELL := /usr/bin/env bash
ANSI_NONE = "\e[1;0m"
ANSI_BLACK = "\e[1;30m"
ANSI_RED = "\e[1;31m"
ANSI_GREEN = "\e[1;32m"
ANSI_YELLOW = "\e[1;33m"
ANSI_BLUE = "\e[1;34m"
ANSI_MAGENTA = "\e[1;35m"
ANSI_CYAN = "\e[1;36m"
ANSI_WHITE = "\e[1;37m"
PATH := $(shell npm bin):$(PATH)
DONE = @printf "done: "$(ANSI_GREEN)"%s"$(ANSI_NONE)"\n" $@
all: help
help:
@echo $(PATH)
@printf "usage:\n"
@printf "$$ make <"$(ANSI_YELLOW)"target"$(ANSI_NONE)">\n"
@printf "target:\n"
@printf " "$(ANSI_YELLOW)"clean"$(ANSI_NONE)" : clean project\n"
@printf " "$(ANSI_YELLOW)"build"$(ANSI_NONE)" : build project\n"
clean: clean-box2d
clean: clean-box2d-unit-test
clean: clean-box2d-testbed
build: build-box2d
build: build-box2d-unit-test
build: build-box2d-testbed
# box2d
clean-box2d:
find Box2D -name "*.js" -delete
$(DONE)
build-box2d:
$$(npm bin)/tsc -p Box2D
$(DONE)
# box2d-unit-test
clean-box2d-unit-test:
find unit-test -name "*.js" -delete
$(DONE)
build-box2d-unit-test:
$$(npm bin)/tsc -p unit-test
$(DONE)
# box2d-testbed
clean-box2d-testbed:
find testbed -name "*.js" -delete
$(DONE)
build-box2d-testbed:
$$(npm bin)/tsc -p testbed
$(DONE)