-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchest.ninja
28 lines (18 loc) · 980 Bytes
/
chest.ninja
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
chest_source_dir = src
chest_binary_dir = build
chest_etc_dir = etc
chest_test_dir = test
# build object
build $chest_binary_dir/chepp.o: cxx $chest_source_dir/chepp.cpp
build $chest_binary_dir/chest.o: cxx $chest_source_dir/chest.cpp
build $chest_binary_dir/init.o: cxx $chest_source_dir/init.cpp
build $chest_binary_dir/new.o: cxx $chest_source_dir/new.cpp
build $chest_binary_dir/pro.o: cxx $chest_source_dir/pro.cpp
build $chest_binary_dir/test_chest.o: cxx $chest_test_dir/test_chest.cpp
# build binary
build $chest_binary_dir/chepp: link $chest_binary_dir/chepp.o
build $chest_binary_dir/bin/_chest/command/init: link $chest_binary_dir/init.o
build $chest_binary_dir/bin/_chest/command/new: link $chest_binary_dir/new.o
build $chest_binary_dir/bin/_chest/new_type/pro: link $chest_binary_dir/pro.o
build $chest_binary_dir/bin/test_chest: link $chest_binary_dir/test_chest.o $chest_binary_dir/chest.o
build $chest_binary_dir/etc/chest/: cp $chest_etc_dir/templates