1 ## Process this file with automake to produce Makefile.in
8 nobase_dist_perllib_DATA = \
13 Dpkg/BuildDriver/DebianRules.pm \
17 Dpkg/BuildOptions.pm \
18 Dpkg/BuildProfiles.pm \
23 Dpkg/Changelog/Debian.pm \
24 Dpkg/Changelog/Entry.pm \
25 Dpkg/Changelog/Entry/Debian.pm \
26 Dpkg/Changelog/Parse.pm \
29 Dpkg/Compression/FileHandle.pm \
30 Dpkg/Compression/Process.pm \
33 Dpkg/Control/Changelog.pm \
34 Dpkg/Control/FieldsCore.pm \
35 Dpkg/Control/Fields.pm \
36 Dpkg/Control/Info.pm \
37 Dpkg/Control/HashCore.pm \
38 Dpkg/Control/HashCore/Tie.pm \
39 Dpkg/Control/Hash.pm \
40 Dpkg/Control/Tests.pm \
41 Dpkg/Control/Tests/Entry.pm \
42 Dpkg/Control/Types.pm \
45 Dpkg/Deps/KnownFacts.pm \
46 Dpkg/Deps/Multiple.pm \
51 Dpkg/ErrorHandling.pm \
57 Dpkg/Interface/Storable.pm \
61 Dpkg/OpenPGP/Backend.pm \
62 Dpkg/OpenPGP/Backend/GnuPG.pm \
63 Dpkg/OpenPGP/Backend/SOP.pm \
64 Dpkg/OpenPGP/Backend/Sequoia.pm \
65 Dpkg/OpenPGP/ErrorCodes.pm \
66 Dpkg/OpenPGP/KeyHandle.pm \
70 Dpkg/Shlibs/Objdump.pm \
71 Dpkg/Shlibs/Objdump/Object.pm \
72 Dpkg/Shlibs/Symbol.pm \
73 Dpkg/Shlibs/SymbolFile.pm \
74 Dpkg/Shlibs/Cppfilt.pm \
75 Dpkg/Source/Archive.pm \
76 Dpkg/Source/BinaryFiles.pm \
77 Dpkg/Source/Format.pm \
78 Dpkg/Source/Functions.pm \
79 Dpkg/Source/Package.pm \
80 Dpkg/Source/Package/V1.pm \
81 Dpkg/Source/Package/V2.pm \
82 Dpkg/Source/Package/V3/Bzr.pm \
83 Dpkg/Source/Package/V3/Custom.pm \
84 Dpkg/Source/Package/V3/Native.pm \
85 Dpkg/Source/Package/V3/Git.pm \
86 Dpkg/Source/Package/V3/Quilt.pm \
87 Dpkg/Source/Patch.pm \
88 Dpkg/Source/Quilt.pm \
91 Dpkg/Vendor/Debian.pm \
92 Dpkg/Vendor/Default.pm \
93 Dpkg/Vendor/Devuan.pm \
94 Dpkg/Vendor/Ubuntu.pm \
104 dpkg-fsys-usrunmess \
113 dpkg-checkbuilddeps \
119 dpkg-mergechangelogs \
121 dpkg-parsechangelog \
131 dpkg-architecture.pl \
134 dpkg-buildpackage.pl \
136 dpkg-checkbuilddeps.pl \
137 dpkg-distaddfile.pl \
138 dpkg-fsys-usrunmess.pl \
139 dpkg-genbuildinfo.pl \
143 dpkg-mergechangelogs.pl \
145 dpkg-parsechangelog.pl \
146 dpkg-scanpackages.pl \
147 dpkg-scansources.pl \
158 dist_bashcompletions_DATA = \
161 dist_zshcompletions_DATA = \
162 completion/zsh/_dpkg-parsechangelog \
165 # Keep it even if empty to have man3dir correctly set
168 man_perl_section = 3perl
172 include $(top_srcdir)/build-aux/subst.am
176 --release=$(PACKAGE_VERSION) \
177 --date='$(PACKAGE_RELEASE_DATE)' \
182 # Install manual pages for perl modules manually as make can't deal
183 # properly with filenames containing colons
184 # Remove empty manual pages (perl modules not documented)
185 $(MKDIR_P) $(DESTDIR)$(man3dir)
186 for module in $(nobase_dist_perllib_DATA); do \
187 name=`echo $$module | $(SED) -e 's|/|::|g' -e 's/\.pm$$//'`; \
188 $(POD2MAN) $(POD2MAN_OPTS) --center=libdpkg-perl \
189 --name="$$name" --section=$(man_perl_section) $(srcdir)/$$module \
190 >$(DESTDIR)$(man3dir)/$$name.$(man_perl_section); \
191 if ! [ -s "$(DESTDIR)$(man3dir)/$$name.$(man_perl_section)" ]; then \
192 echo "error: empty $(man3dir)/$$name.$(man_perl_section)" 2>&1; \
199 $(subst_perl_file) $(DESTDIR)$(perllibdir)/Dpkg.pm
203 for module in $(nobase_dist_perllib_DATA); do \
204 rm -f $(DESTDIR)$(man3dir)/`echo $$module | $(SED) -e 's|/|::|g' -e 's/\.pm$$/.$(man_perl_section)/'`; \
209 $(PERL_COVER) -silent \
210 -ignore_re '^t/.*\.t' \
211 -outputdir $(top_builddir)/doc/coverage/scripts
212 : # Cleanup coverage report index
213 $(PERL) -i -p -e "s:$(abs_top_builddir)::" \
214 $(top_builddir)/doc/coverage/scripts/coverage.html
220 DPKG_PROGTAR=$(TAR) \
221 DPKG_PROGPATCH=$(PATCH) \
222 DPKG_PROGMAKE=$(MAKE) \
223 DPKG_DATADIR=$(top_srcdir)/data \
224 DPKG_ORIGINS_DIR=$(srcdir)/t/origins \
226 TEST_COVERAGE = $(PERL_COVERAGE)
234 t/Dpkg_Shlibs_Cppfilt.t \
238 t/Dpkg_BuildFlags.t \
239 t/Dpkg_BuildFlags_Ubuntu.t \
241 t/Dpkg_BuildOptions.t \
242 t/Dpkg_BuildProfiles.t \
244 t/Dpkg_BuildTypes.t \
246 t/Dpkg_ErrorHandling.t \
255 t/Dpkg_Interface_Storable.t \
256 t/Dpkg_OpenPGP_KeyHandle.t \
260 t/Dpkg_Changelog_Ubuntu.t \
261 t/Dpkg_Control_Fields.t \
263 t/Dpkg_Control_Tests.t \
267 t/Dpkg_Compression.t \
268 t/Dpkg_Source_Functions.t \
269 t/Dpkg_Source_Patch.t \
270 t/Dpkg_Source_Quilt.t \
271 t/Dpkg_Source_Format.t \
272 t/Dpkg_Source_Archive.t \
273 t/Dpkg_Source_Package.t \
274 t/Dpkg_Dist_Files.t \
276 t/dpkg_buildpackage.t \
277 t/dpkg_mergechangelogs.t \
282 t/Dpkg_BuildAPI/ctrl-api-default \
283 t/Dpkg_BuildAPI/ctrl-api-desync \
284 t/Dpkg_BuildAPI/ctrl-api-explicit \
285 t/Dpkg_BuildAPI/ctrl-api-gt-max \
286 t/Dpkg_BuildAPI/ctrl-api-no-int \
287 t/Dpkg_BuildAPI/ctrl-api-no-ver \
288 t/Dpkg_BuildAPI/ctrl-api-rel-noeq \
289 t/Dpkg_Changelog/countme \
290 t/Dpkg_Changelog/date-format \
291 t/Dpkg_Changelog/fields \
292 t/Dpkg_Changelog/misplaced-tz \
293 t/Dpkg_Changelog/regressions \
294 t/Dpkg_Changelog/shadow \
295 t/Dpkg_Changelog/stop-modeline \
296 t/Dpkg_Changelog/unreleased \
297 t/Dpkg_Checksums/data-1 \
298 t/Dpkg_Checksums/data-2 \
299 t/Dpkg_Checksums/empty \
300 t/Dpkg_Conf/config-mixed \
301 t/Dpkg_Control/bogus-armor-double.dsc \
302 t/Dpkg_Control/bogus-armor-formfeed.dsc \
303 t/Dpkg_Control/bogus-armor-inline.dsc \
304 t/Dpkg_Control/bogus-armor-nested.dsc \
305 t/Dpkg_Control/bogus-armor-no-sig.dsc \
306 t/Dpkg_Control/bogus-armor-spaces.dsc \
307 t/Dpkg_Control/bogus-armor-trail.dsc \
308 t/Dpkg_Control/bogus-unsigned.dsc \
309 t/Dpkg_Control/control-1 \
310 t/Dpkg_Control_Tests/tests-missing-fields \
311 t/Dpkg_Control_Tests/tests-plain-text \
312 t/Dpkg_Control_Tests/tests-valid \
313 t/Dpkg_Dist_Files/files-byhand \
314 t/Dpkg_Dist_Files/files-fragment-a \
315 t/Dpkg_Dist_Files/files-fragment-b \
316 t/Dpkg_File/append-me \
317 t/Dpkg_File/dump-partial \
318 t/Dpkg_File/slurp-me \
319 t/Dpkg_OpenPGP/dpkg-test-pub.asc \
320 t/Dpkg_OpenPGP/dpkg-test-sec.asc \
321 t/Dpkg_OpenPGP/sign-file \
322 t/Dpkg_OpenPGP/sign-file-inline.asc \
323 t/Dpkg_OpenPGP/sign-file-inline.sig \
324 t/Dpkg_OpenPGP/sign-file.asc \
325 t/Dpkg_OpenPGP/sign-file.sig \
326 t/Dpkg_Shlibs/anglebrackets.cpp \
327 t/Dpkg_Shlibs/anglebrackets.symbols \
328 t/Dpkg_Shlibs/basictags.c \
329 t/Dpkg_Shlibs/basictags.symbols \
330 t/Dpkg_Shlibs/ld.so.conf \
331 t/Dpkg_Shlibs/ld.so.conf.d/inf_recurse.conf \
332 t/Dpkg_Shlibs/ld.so.conf.d/normal.conf \
333 t/Dpkg_Shlibs/ld.so.conf.d/recursive.conf \
334 t/Dpkg_Shlibs/ld.so.conf_2 \
335 t/Dpkg_Shlibs/objdump.anglebrackets \
336 t/Dpkg_Shlibs/objdump.basictags-amd64 \
337 t/Dpkg_Shlibs/objdump.basictags-i386 \
338 t/Dpkg_Shlibs/objdump.basictags-mips \
339 t/Dpkg_Shlibs/objdump.dbd-pg \
340 t/Dpkg_Shlibs/objdump.glib-ia64 \
341 t/Dpkg_Shlibs/objdump.internal \
342 t/Dpkg_Shlibs/objdump.libc6-2.3 \
343 t/Dpkg_Shlibs/objdump.libc6-2.6 \
344 t/Dpkg_Shlibs/objdump.ls \
345 t/Dpkg_Shlibs/objdump.patterns \
346 t/Dpkg_Shlibs/objdump.space \
347 t/Dpkg_Shlibs/objdump.spacesyms \
348 t/Dpkg_Shlibs/patterns.cpp \
349 t/Dpkg_Shlibs/patterns.map \
350 t/Dpkg_Shlibs/patterns.symbols \
351 t/Dpkg_Shlibs/spacesyms-c-gen.pl \
352 t/Dpkg_Shlibs/spacesyms-o-map.pl \
353 t/Dpkg_Shlibs/spacesyms.map \
354 t/Dpkg_Shlibs/symbols.fake-1 \
355 t/Dpkg_Shlibs/symbols.fake-2 \
356 t/Dpkg_Shlibs/symbols.fake-3 \
357 t/Dpkg_Shlibs/symbols.include-1 \
358 t/Dpkg_Shlibs/symbols.include-2 \
359 t/Dpkg_Shlibs/symbols.include-3 \
360 t/Dpkg_Shlibs/symbols.internal \
361 t/Dpkg_Shlibs/symbols.internal-allow \
362 t/Dpkg_Shlibs/symbols.internal-allow-groups \
363 t/Dpkg_Shlibs/symbols.internal-filter \
364 t/Dpkg_Source_Patch/c-style.patch \
365 t/Dpkg_Source_Patch/ghost-hunk.patch \
366 t/Dpkg_Source_Patch/indent-header.patch \
367 t/Dpkg_Source_Patch/index-+++.patch \
368 t/Dpkg_Source_Patch/index-alone.patch \
369 t/Dpkg_Source_Patch/index-inert.patch \
370 t/Dpkg_Source_Patch/partial.patch \
371 t/Dpkg_Source_Quilt/parse/debian/patches/series \
372 t/Dpkg_Source_Package/package_1.0.orig.tar \
373 t/Dpkg_Source_Package/package_1.0.orig.tar.asc \
374 t/Dpkg_Source_Package/package_1.0.orig.tar.sig \
375 t/Dpkg_Substvars/substvars-req \
376 t/Dpkg_Substvars/substvars1 \
377 t/Dpkg_Substvars/substvars2 \
378 t/dpkg_buildpackage/dpkgdb/status \
379 t/dpkg_buildpackage/hook \
380 t/dpkg_buildpackage/test-source_0.dsc \
381 t/dpkg_buildpackage/test-source_0_all.changes \
382 t/dpkg_buildpackage/test-source_0_all.hook \
383 t/dpkg_buildpackage/test-source_0_any.changes \
384 t/dpkg_buildpackage/test-source_0_any.hook \
385 t/dpkg_buildpackage/test-source_0_binary.changes \
386 t/dpkg_buildpackage/test-source_0_binary.hook \
387 t/dpkg_buildpackage/test-source_0_full.changes \
388 t/dpkg_buildpackage/test-source_0_full.hook \
389 t/dpkg_buildpackage/test-source_0_source.changes \
390 t/dpkg_buildpackage/test-source_0_source.hook \
391 t/dpkg_mergechangelogs/ch-a \
392 t/dpkg_mergechangelogs/ch-b \
393 t/dpkg_mergechangelogs/ch-badver-a \
394 t/dpkg_mergechangelogs/ch-badver-b \
395 t/dpkg_mergechangelogs/ch-badver-merged \
396 t/dpkg_mergechangelogs/ch-badver-old \
397 t/dpkg_mergechangelogs/ch-merged \
398 t/dpkg_mergechangelogs/ch-merged-basic \
399 t/dpkg_mergechangelogs/ch-merged-pr \
400 t/dpkg_mergechangelogs/ch-merged-pr-basic \
401 t/dpkg_mergechangelogs/ch-old \
402 t/dpkg_mergechangelogs/ch-unreleased-a \
403 t/dpkg_mergechangelogs/ch-unreleased-b \
404 t/dpkg_mergechangelogs/ch-unreleased-merged \
405 t/dpkg_mergechangelogs/ch-unreleased-merged-basic \
406 t/dpkg_mergechangelogs/ch-unreleased-old \
407 t/dpkg_source/testsuite_0.dsc \
408 t/dpkg_source/testsuite_1.dsc \
409 t/dpkg_source/testsuite_2.dsc \
410 t/dpkg_source/testsuite_3.dsc \
411 t/mk/architecture.mk \
416 t/mk/debian/changelog \
417 t/mk/debian/control \
427 t/origins/gnewsense \
436 test_data_objects = \
437 t/Dpkg_Shlibs/libobjdump.anglebrackets.so \
438 t/Dpkg_Shlibs/libobjdump.basictags-amd64.so \
439 t/Dpkg_Shlibs/libobjdump.basictags-i386.so \
440 t/Dpkg_Shlibs/libobjdump.basictags-mips.so \
441 t/Dpkg_Shlibs/libobjdump.patterns.so \
442 t/Dpkg_Shlibs/libobjdump.spacesyms.so \
443 t/Dpkg_Shlibs/spacesyms.c \
444 t/Dpkg_Shlibs/spacesyms.o \
448 $(test_data_objects) \
451 $(srcdir)/t/Dpkg_Shlibs/libobjdump.anglebrackets.so: $(srcdir)/t/Dpkg_Shlibs/anglebrackets.cpp
452 $(CXX) $(CXXFLAGS) -shared -fPIC -Wl,-soname -Wl,libanglebrackets.so.1 \
455 $(srcdir)/t/Dpkg_Shlibs/libobjdump.basictags-amd64.so: $(srcdir)/t/Dpkg_Shlibs/basictags.c
456 $(CC) $(CFLAGS) -shared -fPIC -Wl,-soname -Wl,libbasictags.so.1 $< \
459 $(srcdir)/t/Dpkg_Shlibs/libobjdump.basictags-mips.so: $(srcdir)/t/Dpkg_Shlibs/basictags.c
460 $(CC) $(CFLAGS) -shared -fPIC -Wl,-soname -Wl,libbasictags.so.1 $< \
463 $(srcdir)/t/Dpkg_Shlibs/libobjdump.basictags-i386.so: $(srcdir)/t/Dpkg_Shlibs/basictags.c
464 $(CC) $(CFLAGS) -shared -fPIC -Wl,-soname -Wl,libbasictags.so.1 $< \
467 $(srcdir)/t/Dpkg_Shlibs/libobjdump.patterns.so: $(srcdir)/t/Dpkg_Shlibs/patterns.cpp $(srcdir)/t/Dpkg_Shlibs/patterns.map
468 $(CXX) $(CXXFLAGS) -shared -fPIC -Wl,-soname -Wl,libpatterns.so.1 \
469 -Wl,--version-script=$(srcdir)/t/Dpkg_Shlibs/patterns.map $< -o $@
471 $(srcdir)/t/Dpkg_Shlibs/spacesyms.c: $(srcdir)/t/Dpkg_Shlibs/spacesyms-c-gen.pl
472 $(srcdir)/t/Dpkg_Shlibs/spacesyms-c-gen.pl > $@
474 $(srcdir)/t/Dpkg_Shlibs/spacesyms.o: $(srcdir)/t/Dpkg_Shlibs/spacesyms.c $(srcdir)/t/Dpkg_Shlibs/spacesyms-o-map.pl
475 $(CC) $(CFLAGS) -c -fPIC -o $@.tmp $<
476 $(srcdir)/t/Dpkg_Shlibs/spacesyms-o-map.pl $@.tmp $@
479 $(srcdir)/t/Dpkg_Shlibs/libobjdump.spacesyms.so: $(srcdir)/t/Dpkg_Shlibs/spacesyms.o $(srcdir)/t/Dpkg_Shlibs/spacesyms.map
480 $(CC) -shared -Wl,-soname -Wl,libspacesyms.so.1 \
481 -Wl,--version-script=$(srcdir)/t/Dpkg_Shlibs/spacesyms.map $< -o $@
483 .PHONY: refresh-test-data
485 OBJDUMP = objdump -w -f -p -T -R
487 refresh-test-data: $(test_data_objects)
488 $(OBJDUMP) $(srcdir)/t/Dpkg_Shlibs/libobjdump.anglebrackets.so \
489 >$(srcdir)/t/Dpkg_Shlibs/objdump.anglebrackets
490 $(OBJDUMP) $(srcdir)/t/Dpkg_Shlibs/libobjdump.basictags-amd64.so \
491 >$(srcdir)/t/Dpkg_Shlibs/objdump.basictags-amd64
492 $(OBJDUMP) $(srcdir)/t/Dpkg_Shlibs/libobjdump.basictags-i386.so \
493 >$(srcdir)/t/Dpkg_Shlibs/objdump.basictags-i386
494 $(OBJDUMP) $(srcdir)/t/Dpkg_Shlibs/libobjdump.basictags-mips.so \
495 >$(srcdir)/t/Dpkg_Shlibs/objdump.basictags-mips
496 $(OBJDUMP) $(srcdir)/t/Dpkg_Shlibs/libobjdump.patterns.so \
497 >$(srcdir)/t/Dpkg_Shlibs/objdump.patterns
498 $(OBJDUMP) $(srcdir)/t/Dpkg_Shlibs/libobjdump.spacesyms.so \
499 >$(srcdir)/t/Dpkg_Shlibs/objdump.spacesyms
500 $(OBJDUMP) `command -v ls` >$(srcdir)/t/Dpkg_Shlibs/objdump.ls
502 include $(top_srcdir)/build-aux/tap.am
504 check-local: tap-check
506 clean-local: tap-clean coverage-clean