1 ## Process this file with automake to produce Makefile.in
4 MAYBE_DSELECT = dselect
19 ACLOCAL_AMFLAGS = -I m4
23 data/pie-compile.specs \
25 data/no-pie-compile.specs \
26 data/no-pie-link.specs \
40 doc/README.feature-removal-schedule \
41 doc/coding-style.txt \
49 debian/dpkg-dev.docs \
50 debian/dpkg-dev.install \
51 debian/dpkg-dev.manpages \
52 debian/dpkg-dev.preinst \
53 debian/dpkg-dev.lintian-overrides \
55 debian/dpkg.cron.daily \
58 debian/dpkg.manpages \
59 debian/dpkg.postinst \
62 debian/dpkg.logrotate \
63 debian/dpkg.lintian-overrides \
66 debian/dselect.install \
67 debian/dselect.manpages \
68 debian/dselect.preinst \
69 debian/dselect.lintian-overrides \
70 debian/libdpkg-dev.docs \
71 debian/libdpkg-dev.install \
72 debian/libdpkg-dev.lintian-overrides \
73 debian/libdpkg-perl.docs \
74 debian/libdpkg-perl.install \
75 debian/libdpkg-perl.lintian-overrides \
76 debian/source/lintian-overrides \
77 debian/source/format \
78 debian/source/options \
81 debian/shlibs.default \
82 debian/shlibs.override \
90 $(DOXYGEN) doc/Doxyfile
95 # Code coverage support
97 .PHONY: coverage coverage-clean
100 LCOV_OPTS = -q --rc geninfo_checksum=1 --rc lcov_branch_coverage=1
101 LCOV_CAPTURE_OPTS = $(LCOV_OPTS) --no-recursion \
102 -d $(top_builddir)/lib/dpkg \
103 -d $(top_builddir)/src \
104 -d $(top_builddir)/utils
105 LCOV_INJECT = $(PERL) -i $(top_srcdir)/doc/lcov-inject.pl
108 : # Remove coverage data from any previous run
110 find -name '*.gcda' -o -name '*.gcov' | xargs rm -f
113 $(LCOV) $(LCOV_CAPTURE_OPTS) -c -o dpkg_base.lcov -i
115 $(MAKE) -C lib/dpkg check
117 $(MAKE) -C utils check
118 : # Merge test coverage data
119 $(LCOV) $(LCOV_CAPTURE_OPTS) -c -o dpkg_test.lcov
120 $(LCOV) $(LCOV_OPTS) -a dpkg_base.lcov -a dpkg_test.lcov \
122 $(LCOV) $(LCOV_OPTS) -r dpkg_merge.lcov '/usr/include/*' -o dpkg.lcov
124 $(LCOV) $(LCOV_OPTS) -l dpkg.lcov
125 $(LCOV_GENHTML) $(LCOV_OPTS) \
126 --legend --title "dpkg $(VERSION) C code coverage" \
127 -o doc/coverage dpkg.lcov
129 $(MAKE) -C scripts $@
131 : # XXX: Inject perl coverage into lcov index files. This is a fragile
132 : # hack which might break depending on the html output generated.
133 $(LCOV_INJECT) doc/coverage/index-sort-b.html
134 $(LCOV_INJECT) doc/coverage/index-sort-f.html
135 $(LCOV_INJECT) doc/coverage/index-sort-l.html
136 $(LCOV_INJECT) doc/coverage/index.html
140 find -name '*.gcno' -o -name '*.gcda' -o \
141 -name '*.gcov' -o -name '*.lcov' | xargs rm -f
142 $(MAKE) -C scripts $@
145 @echo "Need to reconfigure with --enable-coverage"
155 t/minimum-version.t \
162 t/critic/perlcriticrc \
165 # We need to use absolute paths here due to strict.t invoking a sub-perl,
166 # while changing dir to source dir on out-of-tree builds.
168 DPKG_DATADIR=$(abs_top_srcdir)/data \
171 include $(top_srcdir)/check.am
176 $(MAKE) -C po update-po
177 $(MAKE) -C scripts/po update-po
178 $(MAKE) -C dselect/po update-po
179 $(MAKE) -C man update-po
181 # If we create the dist tarball from the git repository, make sure
182 # that we're not forgetting some files...
184 echo $(VERSION) >$(distdir)/.dist-version
185 if [ -e .git ]; then \
186 for file in `git ls-files | grep -v .gitignore`; do \
187 if [ ! -e "$(distdir)/$$file" ]; then \
188 echo "$$file is missing in $(distdir)" >&2 ; \
192 XDG_CONFIG_HOME= HOME= \
193 git log -C --stat 1.15.0.. >$(distdir)/ChangeLog; \
196 clean-local: doc-clean coverage-clean check-clean