From 227c17e4f14c874d6ca5ad0a966ef029b86ede69 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 26 Nov 2019 18:01:40 +0100 Subject: [PATCH] tools/metrics: create metrics.html --- tool/metrics/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tool/metrics/Makefile b/tool/metrics/Makefile index 285e0e173..e6f6823f3 100644 --- a/tool/metrics/Makefile +++ b/tool/metrics/Makefile @@ -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