tools/metrics: create metrics.html

This commit is contained in:
Matthias Ringwald 2019-11-26 18:01:40 +01:00
parent 3ce65d0ff3
commit 227c17e4f1

View File

@ -18,13 +18,16 @@ SRC_CLASSIC_FILES=$(wildcard ${BTSTACK_ROOT}/src/classic/*.c)
SRCS = ${SRC_FILES} ${SRC_BLE_FILES} ${SRC_BLE_GATT_SERVICE_FILES} ${SRC_CLASSIC_FILES}
all: metrics.txt
all: metrics.md metrics.html
metrics.tsv: ${SRCS}
ccsm --disable-file --disable-global --exclude-std-headers --exclude-file=.h$$ --output-format=tsv --output-metrics=HIS_.* $^ -- -isystem ${C_HEADERS}/c90 -isystem ${C_HEADERS}/c99 ${INCLUDES} > $@
metrics.txt: metrics.tsv metrics-ccsm.py
./metrics-ccsm.py > metrics.txt
metrics.md: metrics.tsv metrics-ccsm.py
./metrics-ccsm.py > metrics.md
metrics.html: metrics.md
pandoc --from markdown --to html -o metrics.html metrics.md
clean:
rm -f metrics.tsv metrics.txt
rm -f metrics.tsv metrics.md