-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (23 loc) · 1.09 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
BUILD_DIR = .build
mkpath:
-@mkdir -p ${BUILD_DIR}/${subdir}
release: subdir=release
release: mkpath
cd ${BUILD_DIR}/${subdir} && cmake -DCMAKE_BUILD_TYPE=Release ../..
cd ${BUILD_DIR}/${subdir} && make -j`lscpu | grep "CPU(s)" | head -n1 | awk '{ print $$2 }'`
cd ${BUILD_DIR}/${subdir} && cpack -G DEB
debug: subdir=debug
debug: mkpath
reset
cd ${BUILD_DIR}/${subdir} && cmake -DCMAKE_BUILD_TYPE=Debug ../..
cd ${BUILD_DIR}/${subdir} && make -j`lscpu | grep "CPU(s)" | head -n1 | awk '{ print $$2 }'`
clean:
-rm -rf ${BUILD_DIR}/debug
-rm -rf ${BUILD_DIR}/release
-rm -rf log
run_debug: debug
#reset && rm -f debug.log && ${BUILD_DIR}/debug/homed-angel -c ./homed-angel.json -s ${PWD}/scripts --verbose | tee debug.log
reset && rm -f debug.log && ${BUILD_DIR}/debug/homed-angel -c ./homed-angel.json -s ${PWD}/scripts --verbose
run_release: release
#reset && rm -f release.log && ${BUILD_DIR}/release/homed-angel -c ./homed-angel.json -s ${PWD}/scripts --verbose | tee debug.log
reset && rm -f release.log && ${BUILD_DIR}/release/homed-angel -c ./homed-angel.json -s ${PWD}/scripts --verbose