-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
42 lines (30 loc) · 924 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
BUILD_DEBUG_DIR?=build
generate_builds:
bash generate_builds.sh ./configs_builds.txt
performance_builds:
bash generate_builds.sh ./timing_builds.txt
python ./plot_performance.py ./
plain_build:
mkdir -p $(BUILD_DEBUG_DIR)
cd $(BUILD_DEBUG_DIR) && conan install ..
cd $(BUILD_DEBUG_DIR) && cmake .. -DCMAKE_BUILD_TYPE=Debug
cd $(BUILD_DEBUG_DIR) && make -j4
build:
@make -j8 -C $(BUILD_DEBUG_DIR)
count_line:
@cloc CMakeLists.txt ./src ./scripts/ ./tests/ --force-lang=lisp,al | sed -e 's/Lisp /ALisp/'
format_project:
@echo "Fromating the source directory..."
@find ./src/ -iname *.hpp -o -iname *.cpp | xargs clang-format -i -style=file
repo_stats:
@gitstats ./ ./stats
dump_prims:
@grep -h -R "DEFUN\(\)" ./src/ | grep "#define" -v | sed -e 's/DEFUN(\(\w*\),\s\"\(\S*\)\".*/ {"\2", "P\1"},/g'
doc_debug:
@mkdocs serve
doc_gen:
@mkdocs build
clean:
@rm -rf build_*
@rm -rf site
@rm -ff stats