src/Makefile

changeset 922
eabfbe9e2952
parent 899
303a981e6834
child 923
45da884269c8
equal deleted inserted replaced
921:5a7aa9cf9c3a 922:eabfbe9e2952
37 37
38 check-coverage: $(GCOV) 38 check-coverage: $(GCOV)
39 mv *.gcov "$(build_dir)" 39 mv *.gcov "$(build_dir)"
40 40
41 %.c.gcov: %.c $(build_dir)/%.gcno 41 %.c.gcov: %.c $(build_dir)/%.gcno
42 @printf '%16s - %s\n' "$<" "`gcov -Ho "$(build_dir)" $< | grep --max-count=1 -i 'lines executed'`" 42 @tabs 22
43 @gcov -Ho "$(build_dir)" $< | grep -A1 'File' | grep -v '\--' \
44 | sed 's/File / /' | sed 's/Lines executed:/\t/' | tr -d '\n'"'" \
45 | sed -E 's/(of [0-9]+)/\1\n/g'
46 @tabs -8
43 47
44 $(build_dir)/%.gcno: 48 $(build_dir)/%.gcno:
45 test -f "$@" 49 test -f "$@"
46 50
47 $(build_dir)/libucx_static$(STLIB_EXT): $(OBJ) 51 $(build_dir)/libucx_static$(STLIB_EXT): $(OBJ)

mercurial