mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-31 10:20:58 +00:00
tools/metrics: create metrics.html
This commit is contained in:
parent
3ce65d0ff3
commit
227c17e4f1
@ -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}
|
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}
|
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} > $@
|
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.md: metrics.tsv metrics-ccsm.py
|
||||||
./metrics-ccsm.py > metrics.txt
|
./metrics-ccsm.py > metrics.md
|
||||||
|
|
||||||
|
metrics.html: metrics.md
|
||||||
|
pandoc --from markdown --to html -o metrics.html metrics.md
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f metrics.tsv metrics.txt
|
rm -f metrics.tsv metrics.md
|
||||||
|
Loading…
x
Reference in New Issue
Block a user