1 ## Process this file with automake to produce Makefile.in
4 MAYBE_DSELECT = dselect
19 ACLOCAL_AMFLAGS = -I m4
21 aclocaldir = $(datadir)/aclocal
37 data/pie-compile.specs \
39 data/no-pie-compile.specs \
40 data/no-pie-link.specs \
49 doc/README.feature-removal-schedule \
51 doc/protected-field.txt \
52 doc/rootless-builds.txt \
65 doc/coding-style.txt \
67 debian/README.bug-usertags \
72 debian/dpkg-dev.docs \
73 debian/dpkg-dev.install \
74 debian/dpkg-dev.manpages \
75 debian/dpkg.alternatives.logrotate \
77 debian/dpkg.cron.daily \
80 debian/dpkg.manpages \
82 debian/dpkg.logrotate \
83 debian/dpkg.lintian-overrides \
84 debian/dpkg.lintian-profile \
87 debian/dselect.install \
88 debian/dselect.manpages \
89 debian/dselect.postrm \
90 debian/libdpkg-dev.install \
91 debian/libdpkg-perl.install \
92 debian/source/format \
94 debian/shlibs.default \
95 debian/shlibs.override \
96 debian/tests/control \
97 debian/tests/test-func \
98 debian/tests/test-func-root \
99 debian/tests/test-not-root \
100 debian/tests/test-root \
111 $(DOXYGEN) doc/Doxyfile
116 # Code coverage support
118 .PHONY: coverage coverage-clean
121 LCOV_OPTS = -q --rc geninfo_checksum=1 --rc lcov_branch_coverage=1
122 LCOV_CAPTURE_OPTS = $(LCOV_OPTS) --no-recursion \
123 -d $(top_builddir)/lib/dpkg \
124 -d $(top_builddir)/src \
125 -d $(top_builddir)/utils
126 LCOV_INJECT = $(PERL) -i $(top_srcdir)/doc/lcov-inject.pl
129 : # Remove coverage data from any previous run
131 find -name '*.gcda' -o -name '*.gcov' | xargs rm -f
134 $(LCOV) $(LCOV_CAPTURE_OPTS) -c -o dpkg_base.lcov -i
136 $(MAKE) -C lib/dpkg check
138 $(MAKE) -C utils check
139 : # Merge test coverage data
140 $(LCOV) $(LCOV_CAPTURE_OPTS) -c -o dpkg_test.lcov
141 $(LCOV) $(LCOV_OPTS) -a dpkg_base.lcov -a dpkg_test.lcov \
143 $(LCOV) $(LCOV_OPTS) -r dpkg_merge.lcov '/usr/include/*' -o dpkg.lcov
145 $(LCOV) $(LCOV_OPTS) -l dpkg.lcov
146 $(LCOV_GENHTML) $(LCOV_OPTS) \
147 --legend --title "dpkg $(VERSION) C code coverage" \
148 -o doc/coverage dpkg.lcov
150 $(MAKE) -C scripts $@
152 : # XXX: Inject perl coverage into lcov index files. This is a fragile
153 : # hack which might break depending on the html output generated.
154 $(LCOV_INJECT) doc/coverage/index-sort-b.html
155 $(LCOV_INJECT) doc/coverage/index-sort-f.html
156 $(LCOV_INJECT) doc/coverage/index-sort-l.html
157 $(LCOV_INJECT) doc/coverage/index.html
161 find -name '*.gcno' -o -name '*.gcda' -o \
162 -name '*.gcov' -o -name '*.lcov' | xargs rm -f
163 $(MAKE) -C scripts $@
166 @echo "Need to reconfigure with --enable-coverage"
177 t/minimum-version.t \
188 t/critic/perlcriticrc \
189 t/codespell/stopwords \
190 t/cppcheck/cppcheck.supp \
193 # We need to use absolute paths here due to strict.t invoking a sub-perl,
194 # while changing dir to source dir on out-of-tree builds.
196 DPKG_DATADIR=$(abs_top_srcdir)/data \
199 include $(top_srcdir)/check.am
204 $(MAKE) -C po update-po
205 $(MAKE) -C scripts/po update-po
206 $(MAKE) -C dselect/po update-po
207 $(MAKE) -C man update-po
209 include $(top_srcdir)/cpan.am
211 # If we create the dist tarball from the git repository, make sure
212 # that we're not forgetting some files...
214 echo $(VERSION) >$(distdir)/.dist-version
215 if [ -e .git ]; then \
216 for file in `git ls-files | grep -v .gitignore`; do \
217 if [ ! -e "$(distdir)/$$file" ]; then \
218 echo "$$file is missing in $(distdir)" >&2 ; \
222 XDG_CONFIG_HOME= HOME= \
223 git log -C --stat 1.15.0.. >$(distdir)/ChangeLog; \
226 clean-local: doc-clean coverage-clean check-clean