-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (32 loc) · 1009 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
debug:
mkdir -p build/Debug && cd build/Debug && cmake -DCMAKE_BUILD_TYPE=Debug ../.. && make -j 8
release:
mkdir -p build/Release && cd build/Release && cmake -DCMAKE_BUILD_TYPE=Release ../.. && make -j 8
clean:
rm -rf build
cleanSandbox:
rm -rf sandbox
copyRelease:
rsync -avH build/Release/lib build/Release/bin sandbox/
copyDebug:
rsync -avH build/Debug/lib build/Debug/bin sandbox/
copy:
mkdir -p sandbox/
rsync -avH data sandbox/
mv sandbox/data/*.sh sandbox/
sandbox: release copy copyRelease
sandboxDebug: debug copy copyDebug
run: sandbox
cd sandbox && ./run.sh pge_app
drun: sandboxDebug
cd sandbox && ./debug.sh pge_app
v: sandboxDebug
cd sandbox && ./valgrind.sh pge_app
profile: sandboxDebug
cd sandbox && ./profile.sh pge_app
tests: sandboxDebug
cd sandbox && ./tests.sh pge_app_tests
# See here: https://stackoverflow.com/questions/3931741/why-does-make-think-the-target-is-up-to-date
PHONY: .tests
dtests: sandboxDebug
cd sandbox && ./debug-tests.sh pge_app_tests