po: Update German man pages translation
[dpkg.git] / Makefile.am
blob180562e190b379f577d699be85c584aa079ce2ee
1 ## Process this file with automake to produce Makefile.in
3 if BUILD_DSELECT
4   MAYBE_DSELECT = dselect
5 endif
7 SUBDIRS = \
8         lib \
9         dpkg-deb \
10         dpkg-split \
11         src \
12         utils \
13         $(MAYBE_DSELECT) \
14         scripts \
15         t-func \
16         po \
17         man
19 ACLOCAL_AMFLAGS = -I m4
21 aclocaldir = $(datadir)/aclocal
23 dist_aclocal_DATA = \
24         m4/dpkg-arch.m4 \
25         m4/dpkg-build.m4 \
26         m4/dpkg-compiler.m4 \
27         m4/dpkg-coverage.m4 \
28         m4/dpkg-funcs.m4 \
29         m4/dpkg-libs.m4 \
30         m4/dpkg-linker.m4 \
31         m4/dpkg-progs.m4 \
32         m4/dpkg-types.m4 \
33         m4/dpkg-unicode.m4 \
34         $(nil)
36 dist_pkgdata_DATA = \
37         data/pie-compile.specs \
38         data/pie-link.specs \
39         data/no-pie-compile.specs \
40         data/no-pie-link.specs \
41         data/cputable \
42         data/ostable \
43         data/abitable \
44         data/tupletable \
45         $(nil)
47 dist_doc_DATA = \
48         doc/README.api \
49         doc/README.feature-removal-schedule \
50         doc/frontend.txt \
51         doc/protected-field.txt \
52         doc/rootless-builds.txt \
53         doc/triggers.txt \
54         $(nil)
56 EXTRA_DIST = \
57         .gitlab-ci.yml \
58         .mailmap \
59         ChangeLog.old \
60         README.l10n \
61         autogen \
62         gen-changelog \
63         get-version \
64         run-script \
65         doc/coding-style.txt \
66         doc/lcov-inject.pl \
67         debian/README.bug-usertags \
68         debian/bug-script \
69         debian/changelog \
70         debian/control \
71         debian/copyright \
72         debian/dpkg-dev.docs \
73         debian/dpkg-dev.install \
74         debian/dpkg-dev.manpages \
75         debian/dpkg.alternatives.logrotate \
76         debian/dpkg.cfg \
77         debian/dpkg.cron.daily \
78         debian/dpkg.docs \
79         debian/dpkg.install \
80         debian/dpkg.manpages \
81         debian/dpkg.postrm \
82         debian/dpkg.logrotate \
83         debian/dpkg.lintian-overrides \
84         debian/dpkg.lintian-profile \
85         debian/dselect.cfg \
86         debian/dselect.docs \
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 \
93         debian/rules \
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 \
101         po/its/polkit.its \
102         po/its/polkit.loc \
103         tests \
104         $(test_scripts) \
105         $(test_data) \
106         $(nil)
108 .PHONY: doc
110 doc: doc/Doxyfile
111         $(DOXYGEN) doc/Doxyfile
113 doc-clean:
114         rm -rf doc/html/
116 # Code coverage support
118 .PHONY: coverage coverage-clean
120 if COVERAGE_ENABLED
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
128 coverage: all
129         : # Remove coverage data from any previous run
130         rm -f *.lcov
131         find -name '*.gcda' -o -name '*.gcov' | xargs rm -f
133         : # Initialize data
134         $(LCOV) $(LCOV_CAPTURE_OPTS) -c -o dpkg_base.lcov -i
135         : # Run test cases
136         $(MAKE) -C lib/dpkg check
137         $(MAKE) -C src 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 \
142           -o dpkg_merge.lcov
143         $(LCOV) $(LCOV_OPTS) -r dpkg_merge.lcov '/usr/include/*' -o dpkg.lcov
144         : # Generate reports
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
159 coverage-clean:
160         rm -rf doc/coverage/
161         find -name '*.gcno' -o -name '*.gcda' -o \
162              -name '*.gcov' -o -name '*.lcov' | xargs rm -f
163         $(MAKE) -C scripts $@
164 else
165 coverage:
166         @echo "Need to reconfigure with --enable-coverage"
168 coverage-clean:
169 endif
171 test_scripts = \
172         t/po.t \
173         t/pod.t \
174         t/pod-spell.t \
175         t/pod-coverage.t \
176         t/synopsis.t \
177         t/minimum-version.t \
178         t/module-version.t \
179         t/syntax.t \
180         t/strict.t \
181         t/critic.t \
182         t/codespell.t \
183         t/shellcheck.t \
184         t/cppcheck.t \
185         $(nil)
187 test_data = \
188         t/critic/perlcriticrc \
189         t/codespell/stopwords \
190         t/cppcheck/cppcheck.supp \
191         $(nil)
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.
195 TEST_ENV_VARS = \
196         DPKG_DATADIR=$(abs_top_srcdir)/data \
197         $(nil)
199 include $(top_srcdir)/check.am
201 .PHONY: update-po
203 update-po:
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...
213 dist-hook: dist-cpan
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 ; \
219               exit 1 ; \
220             fi ; \
221           done ; \
222           XDG_CONFIG_HOME= HOME= \
223           git log -C --stat 1.15.0.. >$(distdir)/ChangeLog; \
224         fi
226 clean-local: doc-clean coverage-clean check-clean