Debian Codegraph @

Makefile.am

raw
1 # Makefile for popt library.
2
3 MCCABE = pmccabe
4
5 EXTRA_DIST = autogen.sh CREDITS $(man_MANS) ci/Dockerfile build-aux popt.pdf
6
7 SUBDIRS = src po tests
8
9 pkgconfigdir = $(libdir)/pkgconfig
10 pkgconfig_DATA = popt.pc
11
12 man_MANS = popt.3
13
14 BUILT_SOURCES = popt.pc # popt.lcd
15
16 .PHONY: ci
17 ci:
18 podman build -t popt -f ci/Dockerfile .
19 podman run -t popt
20
21 .PHONY: updatepo
22 updatepo:
23 rsync -Lrtvz translationproject.org::tp/latest/popt/ po
24
25 popt.lcd: Makefile.am ${libpopt_la_SOURCES} ${include_HEADERS} ${noinst_HEADERS}
26 lclint -dump $@ ${libpopt_la_SOURCES}
27
28 .PHONY: sources
29 sources:
30 @echo $(libpopt_la_SOURCES:%=popt/%)
31
32 .PHONY: mccabe
33 mccabe:
34 $(MCCABE) $(libpopt_la_SOURCES) | sort -n -r | head -n 10
35
36 .PHONY: doxygen
37 doxygen: Doxyfile
38 rm -rf doxygen
39 mkdir -p doxygen
40 doxygen
41
42 .PHONY: lcov-reset # run lcov from scratch, always
43 lcov-reset:
44 make lcov-run
45 make lcov-report
46
47 .PHONY: lcov # run lcov from scratch if the dir is not there
48 lcov:
49 make lcov-reset
50
51 .PHONY: lcov-run # reset run coverage tests
52 lcov-run:
53 @-rm -rf lcov
54 find . -name "*.gcda" -exec rm {} \;
55 make check
56
57 .PHONY: lcov-report # generate report based on current coverage data
58 lcov-report:
59 mkdir lcov
60 lcov --directory . --capture --output-file lcov/lcov.info
61 lcov -l lcov/lcov.info | grep -v "`cd $(top_srcdir) && pwd`" | cut -d: -f1 > lcov/remove
62 lcov -r lcov/lcov.info `cat lcov/remove` > lcov/lcov.cleaned.info
63 rm lcov/remove
64 mv lcov/lcov.cleaned.info lcov/lcov.info
65 genhtml -t "$(PACKAGE_STRING)" -o lcov lcov/lcov.info
66
67 #.PHONY: lcov-upload
68 #lcov-upload: lcov
69 # rsync -rvz -e ssh --delete lcov/* ???
70
71 ACLOCAL_AMFLAGS = -I m4