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/build-driver.txt \
51 doc/spec/frontend-api.txt \
52 doc/spec/protected-field.txt \
53 doc/spec/rootless-builds.txt \
54 doc/spec/triggers.txt \
63 build-aux/gen-changelog \
64 build-aux/gen-release \
65 build-aux/get-vcs-id \
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-dev.manpages \
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 \
119 $(DOXYGEN) doc/Doxyfile
124 # Code coverage support
126 .PHONY: coverage coverage-clean
129 LCOV_OPTS = --quiet --rc geninfo_checksum=1 --rc lcov_branch_coverage=1
130 LCOV_CAPTURE_OPTS = $(LCOV_OPTS) --no-recursion \
131 --directory $(top_builddir)/lib/dpkg \
132 --directory $(top_builddir)/src/common \
133 --directory $(top_builddir)/src/deb \
134 --directory $(top_builddir)/src/split \
135 --directory $(top_builddir)/src/divert \
136 --directory $(top_builddir)/src/query \
137 --directory $(top_builddir)/src/trigger \
138 --directory $(top_builddir)/src/statoverride \
139 --directory $(top_builddir)/src/main \
140 --directory $(top_builddir)/utils \
142 LCOV_INJECT = $(PERL) -i $(top_srcdir)/build-aux/lcov-inject
145 : # Remove coverage data from any previous run
147 find -name '*.gcda' -o -name '*.gcov' | xargs rm -f
150 $(LCOV) $(LCOV_CAPTURE_OPTS) --capture --initial \
151 --output-file dpkg_base.lcov
153 $(MAKE) -C lib/dpkg check
155 $(MAKE) -C utils check
156 : # Merge test coverage data
157 $(LCOV) $(LCOV_CAPTURE_OPTS) --capture \
158 --output-file dpkg_test.lcov
159 $(LCOV) $(LCOV_OPTS) \
160 --add-tracefile dpkg_base.lcov \
161 --add-tracefile dpkg_test.lcov \
162 --output-file dpkg_merge.lcov
163 $(LCOV) $(LCOV_OPTS) --remove dpkg_merge.lcov '/usr/include/*' \
164 --output-file dpkg.lcov
166 $(LCOV) $(LCOV_OPTS) --list dpkg.lcov
167 $(LCOV_GENHTML) $(LCOV_OPTS) \
168 --legend --title "dpkg $(VERSION) C code coverage" \
169 --output-directory doc/coverage dpkg.lcov
171 $(MAKE) -C scripts $@
173 : # XXX: Inject perl coverage into lcov index files. This is a fragile
174 : # hack which might break depending on the html output generated.
175 $(LCOV_INJECT) doc/coverage/index-sort-b.html
176 $(LCOV_INJECT) doc/coverage/index-sort-f.html
177 $(LCOV_INJECT) doc/coverage/index-sort-l.html
178 $(LCOV_INJECT) doc/coverage/index.html
182 find -name '*.gcno' -o -name '*.gcda' -o \
183 -name '*.gcov' -o -name '*.lcov' | xargs rm -f
184 $(MAKE) -C scripts $@
187 @echo "Need to reconfigure with --enable-coverage"
198 t/minimum-version.t \
209 t/codespell/stopwords \
210 t/cppcheck/cppcheck.supp \
211 t/critic/perlcriticrc \
220 # We need to use absolute paths here due to strict.t invoking a sub-perl,
221 # while changing dir to source dir on out-of-tree builds.
223 DPKG_DATADIR=$(abs_top_srcdir)/data \
226 include $(top_srcdir)/build-aux/tap.am
228 check-local: tap-check
233 $(MAKE) -C po update-po
234 $(MAKE) -C scripts/po update-po
235 $(MAKE) -C dselect/po update-po
236 $(MAKE) -C man update-po
238 include $(top_srcdir)/build-aux/cpan.am
240 # If we create the dist tarball from the git repository, make sure
241 # that we're not forgetting some files, and we are not storing any symlink
242 # in the repository (except for the origins/default one) as those degrade
243 # to regular files due to automake telling tar to dereference them.
245 echo $(VERSION) >$(distdir)/.dist-version
246 echo $(PACKAGE_VCS_ID) >$(distdir)/.dist-vcs-id
247 if [ -e .git ]; then \
248 for file in `git ls-tree -r HEAD | grep ^12 | grep -v t/origins/default`; do \
249 echo "$$file is a symlink packed as a file on the dist tar" >&2 ; \
252 for file in `git ls-files | grep -vE '\.git(ignore|-blame)'`; do \
253 if [ ! -e "$(distdir)/$$file" ]; then \
254 echo "$$file is missing in $(distdir)" >&2 ; \
258 XDG_CONFIG_HOME= HOME= \
259 git log -C --stat 1.15.0.. >$(distdir)/ChangeLog; \
262 clean-local: doc-clean coverage-clean tap-clean