1 ## Process this file with automake to produce Makefile.in
4 MAYBE_DSELECT = dselect
17 ACLOCAL_AMFLAGS = -I m4
34 data/pie-compile.specs \
36 data/no-pie-compile.specs \
37 data/no-pie-link.specs \
46 doc/README.feature-removal-schedule \
50 doc/spec/frontend-api.txt \
51 doc/spec/protected-field.txt \
52 doc/spec/rootless-builds.txt \
53 doc/spec/triggers.txt \
62 build-aux/gen-changelog \
63 build-aux/get-version \
64 build-aux/lcov-inject \
65 build-aux/run-script \
66 build-aux/test-runner \
67 doc/coding-style.txt \
68 debian/README.bug-usertags \
73 debian/dpkg-dev.docs \
74 debian/dpkg-dev.install \
75 debian/dpkg-dev.manpages \
76 debian/dpkg.alternatives.logrotate \
78 debian/dpkg.cron.daily \
80 debian/dpkg.dpkg-db-backup.service \
81 debian/dpkg.dpkg-db-backup.timer \
83 debian/dpkg.manpages \
84 debian/dpkg.postinst \
86 debian/dpkg.logrotate \
87 debian/dpkg.lintian-overrides \
88 debian/dpkg.lintian-profile \
91 debian/dselect.install \
92 debian/dselect.lintian-overrides \
93 debian/dselect.manpages \
94 debian/dselect.postrm \
95 debian/libdpkg-dev.install \
96 debian/libdpkg-perl.install \
97 debian/source/format \
98 debian/source/lintian-overrides \
99 debian/not-installed \
101 debian/shlibs.default \
102 debian/shlibs.override \
103 debian/tests/control \
104 debian/tests/test-func \
105 debian/tests/test-func-root \
106 debian/tests/test-not-root \
107 debian/tests/test-root \
115 $(DOXYGEN) doc/Doxyfile
120 # Code coverage support
122 .PHONY: coverage coverage-clean
125 LCOV_OPTS = --quiet --rc geninfo_checksum=1 --rc lcov_branch_coverage=1
126 LCOV_CAPTURE_OPTS = $(LCOV_OPTS) --no-recursion \
127 --directory $(top_builddir)/lib/dpkg \
128 --directory $(top_builddir)/src/common \
129 --directory $(top_builddir)/src/deb \
130 --directory $(top_builddir)/src/split \
131 --directory $(top_builddir)/src/divert \
132 --directory $(top_builddir)/src/query \
133 --directory $(top_builddir)/src/trigger \
134 --directory $(top_builddir)/src/statoverride \
135 --directory $(top_builddir)/src/main \
136 --directory $(top_builddir)/utils \
138 LCOV_INJECT = $(PERL) -i $(top_srcdir)/build-aux/lcov-inject
141 : # Remove coverage data from any previous run
143 find -name '*.gcda' -o -name '*.gcov' | xargs rm -f
146 $(LCOV) $(LCOV_CAPTURE_OPTS) --capture --initial \
147 --output-file dpkg_base.lcov
149 $(MAKE) -C lib/dpkg check
151 $(MAKE) -C utils check
152 : # Merge test coverage data
153 $(LCOV) $(LCOV_CAPTURE_OPTS) --capture \
154 --output-file dpkg_test.lcov
155 $(LCOV) $(LCOV_OPTS) \
156 --add-tracefile dpkg_base.lcov \
157 --add-tracefile dpkg_test.lcov \
158 --output-file dpkg_merge.lcov
159 $(LCOV) $(LCOV_OPTS) --remove dpkg_merge.lcov '/usr/include/*' \
160 --output-file dpkg.lcov
162 $(LCOV) $(LCOV_OPTS) --list dpkg.lcov
163 $(LCOV_GENHTML) $(LCOV_OPTS) \
164 --legend --title "dpkg $(VERSION) C code coverage" \
165 --output-directory doc/coverage dpkg.lcov
167 $(MAKE) -C scripts $@
169 : # XXX: Inject perl coverage into lcov index files. This is a fragile
170 : # hack which might break depending on the html output generated.
171 $(LCOV_INJECT) doc/coverage/index-sort-b.html
172 $(LCOV_INJECT) doc/coverage/index-sort-f.html
173 $(LCOV_INJECT) doc/coverage/index-sort-l.html
174 $(LCOV_INJECT) doc/coverage/index.html
178 find -name '*.gcno' -o -name '*.gcda' -o \
179 -name '*.gcov' -o -name '*.lcov' | xargs rm -f
180 $(MAKE) -C scripts $@
183 @echo "Need to reconfigure with --enable-coverage"
194 t/minimum-version.t \
205 t/codespell/stopwords \
206 t/cppcheck/cppcheck.supp \
207 t/critic/perlcriticrc \
216 # We need to use absolute paths here due to strict.t invoking a sub-perl,
217 # while changing dir to source dir on out-of-tree builds.
219 DPKG_DATADIR=$(abs_top_srcdir)/data \
222 include $(top_srcdir)/build-aux/tap.am
224 check-local: tap-check
229 $(MAKE) -C po update-po
230 $(MAKE) -C scripts/po update-po
231 $(MAKE) -C dselect/po update-po
232 $(MAKE) -C man update-po
234 include $(top_srcdir)/build-aux/cpan.am
236 # If we create the dist tarball from the git repository, make sure
237 # that we're not forgetting some files, and we are not storing any symlink
238 # in the repository (except for the origins/default one) as those degrade
239 # to regular files due to automake telling tar to dereference them.
241 echo $(VERSION) >$(distdir)/.dist-version
242 if [ -e .git ]; then \
243 for file in `git ls-tree -r HEAD | grep ^12 | grep -v t/origins/default`; do \
244 echo "$$file is a symlink packed as a file on the dist tar" >&2 ; \
247 for file in `git ls-files | grep -vE '\.git(ignore|-blame)'`; do \
248 if [ ! -e "$(distdir)/$$file" ]; then \
249 echo "$$file is missing in $(distdir)" >&2 ; \
253 XDG_CONFIG_HOME= HOME= \
254 git log -C --stat 1.15.0.. >$(distdir)/ChangeLog; \
257 clean-local: doc-clean coverage-clean tap-clean