forked from enzo-project/enzo-e
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
72 lines (70 loc) · 2.66 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
68
69
70
AWK_ORG= ./tools/awk/diff-org.awk
#----------------------------------------------------------------------
.PHONY: bin/enzo-p
bin/enzo-p:
./build.sh bin/enzo-p
#----------------------------------------------------------------------
.PHONY: help
help:
@echo
@echo "make [compile] Compile Enzo-P as ./bin/enzo-p"
@echo "make cccc Compute code quality metrics in src/.cccc/cccc.html"
@echo "make clean Remove object and test files"
@echo "make coverity Compile enzo-p using the coverity static analysis tool"
@echo "make diff Generate org-mode 'diff.org' file from 'git diff' output"
@echo "make gdb Generate org-mode 'gdb.org' from gdb 'where' output in gdb.out"
@echo "make doc Generate html documentation from Sphinx in doc/build/html"
@echo "make dox Generate doxygen html documentation from source in doc/dox-html"
# @echo "make log Generate org-mode 'log.org' file from 'git log' output"
@echo "make reset Clear any settings from an incomplete ./build.sh"
@echo "make test Run regression tests"
#----------------------------------------------------------------------
.PHONY: doc
doc:
$(MAKE) -C doc html
#----------------------------------------------------------------------
.PHONY: dox
dox:
$(MAKE) -C src dox-html
#----------------------------------------------------------------------
.PHONY: clean
clean:
./build.sh clean
#----------------------------------------------------------------------
.PHONY: reset
reset:
./build.sh reset
#----------------------------------------------------------------------
.PHONY: test
test:
./build.sh test
#----------------------------------------------------------------------
.PHONY: compile
compile:
./build.sh compile
#----------------------------------------------------------------------
.PHONY: coverity
coverity:
rm -rf cov-int cov-int.tgz
cov-build --dir cov-int $(MAKE)
tar cfz cov-int.tgz cov-int
#----------------------------------------------------------------------
.PHONY: cccc
cccc:
$(MAKE) -C src cccc
#----------------------------------------------------------------------
.PHONY: diff
diff:
echo '* TODO [/] git diff branch (' `git rev-parse --abbrev-ref HEAD` ')' > diff.org
echo '** TODO [/] Unstaged diff' >> diff.org
git diff -b |$(AWK_ORG) >> diff.org
echo '** TODO [/] Staged diff' >> diff.org
git diff --cached HEAD -b | $(AWK_ORG) >> diff.org
#----------------------------------------------------------------------
.PHONY: gdb
gdb:
awk -f ./tools/awk/gdb-org.awk <gdb.out > gdb.org
#----------------------------------------------------------------------
#.PHONY: log
#log:
# git log | ./tools/log-org.sh > log.org