1 ## Process this file with automake to produce Makefile.in
4 MAYBE_DSELECT = dselect
17 ACLOCAL_AMFLAGS = -I m4
19 aclocaldir = $(datadir)/aclocal
35 data/pie-compile.specs \
37 data/no-pie-compile.specs \
38 data/no-pie-link.specs \
47 doc/README.feature-removal-schedule \
50 docspecdir = $(docdir)/spec
53 doc/spec/frontend-api.txt \
54 doc/spec/protected-field.txt \
55 doc/spec/rootless-builds.txt \
56 doc/spec/triggers.txt \
65 build-aux/gen-changelog \
66 build-aux/get-version \
67 build-aux/lcov-inject \
68 build-aux/run-script \
69 build-aux/test-runner \
70 doc/coding-style.txt \
71 debian/README.bug-usertags \
76 debian/dpkg-dev.docs \
77 debian/dpkg-dev.install \
78 debian/dpkg-dev.manpages \
79 debian/dpkg.alternatives.logrotate \
81 debian/dpkg.cron.daily \
83 debian/dpkg.dpkg-db-backup.service \
84 debian/dpkg.dpkg-db-backup.timer \
86 debian/dpkg.manpages \
87 debian/dpkg.postinst \
89 debian/dpkg.logrotate \
90 debian/dpkg.lintian-overrides \
91 debian/dpkg.lintian-profile \
94 debian/dselect.install \
95 debian/dselect.lintian-overrides \
96 debian/dselect.manpages \
97 debian/dselect.postrm \
98 debian/libdpkg-dev.install \
99 debian/libdpkg-perl.install \
100 debian/source/format \
101 debian/source/lintian-overrides \
102 debian/not-installed \
104 debian/shlibs.default \
105 debian/shlibs.override \
106 debian/tests/control \
107 debian/tests/test-func \
108 debian/tests/test-func-root \
109 debian/tests/test-not-root \
110 debian/tests/test-root \
121 $(DOXYGEN) doc/Doxyfile
126 # Code coverage support
128 .PHONY: coverage coverage-clean
131 LCOV_OPTS = --quiet --rc geninfo_checksum=1 --rc lcov_branch_coverage=1
132 LCOV_CAPTURE_OPTS = $(LCOV_OPTS) --no-recursion \
133 --directory $(top_builddir)/lib/dpkg \
134 --directory $(top_builddir)/src/common \
135 --directory $(top_builddir)/src/deb \
136 --directory $(top_builddir)/src/split \
137 --directory $(top_builddir)/src/divert \
138 --directory $(top_builddir)/src/query \
139 --directory $(top_builddir)/src/trigger \
140 --directory $(top_builddir)/src/statoverride \
141 --directory $(top_builddir)/src/main \
142 --directory $(top_builddir)/utils \
144 LCOV_INJECT = $(PERL) -i $(top_srcdir)/build-aux/lcov-inject
147 : # Remove coverage data from any previous run
149 find -name '*.gcda' -o -name '*.gcov' | xargs rm -f
152 $(LCOV) $(LCOV_CAPTURE_OPTS) --capture --initial \
153 --output-file dpkg_base.lcov
155 $(MAKE) -C lib/dpkg check
157 $(MAKE) -C utils check
158 : # Merge test coverage data
159 $(LCOV) $(LCOV_CAPTURE_OPTS) --capture \
160 --output-file dpkg_test.lcov
161 $(LCOV) $(LCOV_OPTS) \
162 --add-tracefile dpkg_base.lcov \
163 --add-tracefile dpkg_test.lcov \
164 --output-file dpkg_merge.lcov
165 $(LCOV) $(LCOV_OPTS) --remove dpkg_merge.lcov '/usr/include/*' \
166 --output-file dpkg.lcov
168 $(LCOV) $(LCOV_OPTS) --list dpkg.lcov
169 $(LCOV_GENHTML) $(LCOV_OPTS) \
170 --legend --title "dpkg $(VERSION) C code coverage" \
171 --output-directory doc/coverage dpkg.lcov
173 $(MAKE) -C scripts $@
175 : # XXX: Inject perl coverage into lcov index files. This is a fragile
176 : # hack which might break depending on the html output generated.
177 $(LCOV_INJECT) doc/coverage/index-sort-b.html
178 $(LCOV_INJECT) doc/coverage/index-sort-f.html
179 $(LCOV_INJECT) doc/coverage/index-sort-l.html
180 $(LCOV_INJECT) doc/coverage/index.html
184 find -name '*.gcno' -o -name '*.gcda' -o \
185 -name '*.gcov' -o -name '*.lcov' | xargs rm -f
186 $(MAKE) -C scripts $@
189 @echo "Need to reconfigure with --enable-coverage"
200 t/minimum-version.t \
211 t/codespell/stopwords \
212 t/cppcheck/cppcheck.supp \
213 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