1 ## Process this file with automake to produce Makefile.in
4 MAYBE_DSELECT = dselect
17 ACLOCAL_AMFLAGS = -I m4
19 aclocaldir = $(datadir)/aclocal
36 data/pie-compile.specs \
38 data/no-pie-compile.specs \
39 data/no-pie-link.specs \
48 doc/README.feature-removal-schedule \
51 docspecdir = $(docdir)/spec
54 doc/spec/frontend-api.txt \
55 doc/spec/protected-field.txt \
56 doc/spec/rootless-builds.txt \
57 doc/spec/triggers.txt \
66 build-aux/gen-changelog \
67 build-aux/get-version \
68 build-aux/lcov-inject \
69 build-aux/run-script \
70 build-aux/test-runner \
71 doc/coding-style.txt \
72 debian/README.bug-usertags \
77 debian/dpkg-dev.docs \
78 debian/dpkg-dev.install \
79 debian/dpkg-dev.manpages \
80 debian/dpkg.alternatives.logrotate \
82 debian/dpkg.cron.daily \
84 debian/dpkg.dpkg-db-backup.service \
85 debian/dpkg.dpkg-db-backup.timer \
87 debian/dpkg.manpages \
88 debian/dpkg.postinst \
90 debian/dpkg.logrotate \
91 debian/dpkg.lintian-overrides \
92 debian/dpkg.lintian-profile \
95 debian/dselect.install \
96 debian/dselect.lintian-overrides \
97 debian/dselect.manpages \
98 debian/dselect.postrm \
99 debian/libdpkg-dev.install \
100 debian/libdpkg-perl.install \
101 debian/source/format \
102 debian/source/lintian-overrides \
103 debian/not-installed \
105 debian/shlibs.default \
106 debian/shlibs.override \
107 debian/tests/control \
108 debian/tests/test-func \
109 debian/tests/test-func-root \
110 debian/tests/test-not-root \
111 debian/tests/test-root \
122 $(DOXYGEN) doc/Doxyfile
127 # Code coverage support
129 .PHONY: coverage coverage-clean
132 LCOV_OPTS = --quiet --rc geninfo_checksum=1 --rc lcov_branch_coverage=1
133 LCOV_CAPTURE_OPTS = $(LCOV_OPTS) --no-recursion \
134 --directory $(top_builddir)/lib/dpkg \
135 --directory $(top_builddir)/src/common \
136 --directory $(top_builddir)/src/deb \
137 --directory $(top_builddir)/src/split \
138 --directory $(top_builddir)/src/divert \
139 --directory $(top_builddir)/src/query \
140 --directory $(top_builddir)/src/trigger \
141 --directory $(top_builddir)/src/statoverride \
142 --directory $(top_builddir)/src/main \
143 --directory $(top_builddir)/utils \
145 LCOV_INJECT = $(PERL) -i $(top_srcdir)/build-aux/lcov-inject
148 : # Remove coverage data from any previous run
150 find -name '*.gcda' -o -name '*.gcov' | xargs rm -f
153 $(LCOV) $(LCOV_CAPTURE_OPTS) --capture --initial \
154 --output-file dpkg_base.lcov
156 $(MAKE) -C lib/dpkg check
158 $(MAKE) -C utils check
159 : # Merge test coverage data
160 $(LCOV) $(LCOV_CAPTURE_OPTS) --capture \
161 --output-file dpkg_test.lcov
162 $(LCOV) $(LCOV_OPTS) \
163 --add-tracefile dpkg_base.lcov \
164 --add-tracefile dpkg_test.lcov \
165 --output-file dpkg_merge.lcov
166 $(LCOV) $(LCOV_OPTS) --remove dpkg_merge.lcov '/usr/include/*' \
167 --output-file dpkg.lcov
169 $(LCOV) $(LCOV_OPTS) --list dpkg.lcov
170 $(LCOV_GENHTML) $(LCOV_OPTS) \
171 --legend --title "dpkg $(VERSION) C code coverage" \
172 --output-directory doc/coverage dpkg.lcov
174 $(MAKE) -C scripts $@
176 : # XXX: Inject perl coverage into lcov index files. This is a fragile
177 : # hack which might break depending on the html output generated.
178 $(LCOV_INJECT) doc/coverage/index-sort-b.html
179 $(LCOV_INJECT) doc/coverage/index-sort-f.html
180 $(LCOV_INJECT) doc/coverage/index-sort-l.html
181 $(LCOV_INJECT) doc/coverage/index.html
185 find -name '*.gcno' -o -name '*.gcda' -o \
186 -name '*.gcov' -o -name '*.lcov' | xargs rm -f
187 $(MAKE) -C scripts $@
190 @echo "Need to reconfigure with --enable-coverage"
201 t/minimum-version.t \
212 t/codespell/stopwords \
213 t/cppcheck/cppcheck.supp \
214 t/critic/perlcriticrc \
217 # We need to use absolute paths here due to strict.t invoking a sub-perl,
218 # while changing dir to source dir on out-of-tree builds.
220 DPKG_DATADIR=$(abs_top_srcdir)/data \
223 include $(top_srcdir)/build-aux/tap.am
225 check-local: tap-check
230 $(MAKE) -C po update-po
231 $(MAKE) -C scripts/po update-po
232 $(MAKE) -C dselect/po update-po
233 $(MAKE) -C man update-po
235 include $(top_srcdir)/build-aux/cpan.am
237 # If we create the dist tarball from the git repository, make sure
238 # that we're not forgetting some files, and we are not storing any symlink
239 # in the repository (except for the origins/default one) as those degrade
240 # to regular files due to automake telling tar to dereference them.
242 echo $(VERSION) >$(distdir)/.dist-version
243 if [ -e .git ]; then \
244 for file in `git ls-tree -r HEAD | grep ^12 | grep -v t/origins/default`; do \
245 echo "$$file is a symlink packed as a file on the dist tar" >&2 ; \
248 for file in `git ls-files | grep -vE '\.git(ignore|-blame)'`; do \
249 if [ ! -e "$(distdir)/$$file" ]; then \
250 echo "$$file is missing in $(distdir)" >&2 ; \
254 XDG_CONFIG_HOME= HOME= \
255 git log -C --stat 1.15.0.. >$(distdir)/ChangeLog; \
258 clean-local: doc-clean coverage-clean tap-clean