Remove pth dependency
[platform/upstream/gpg2.git] / Makefile.in
1 # Makefile.in generated by automake 1.16.3 from Makefile.am.
2 # @configure_input@
3
4 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
5
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 # Makefile.am - main makefile for GnuPG
18 #       Copyright (C) 2001, 2004, 2010 Free Software Foundation, Inc.
19 #
20 # This file is part of GnuPG.
21 #
22 # GnuPG is free software; you can redistribute it and/or modify
23 # it under the terms of the GNU General Public License as published by
24 # the Free Software Foundation; either version 3 of the License, or
25 # (at your option) any later version.
26 #
27 # GnuPG is distributed in the hope that it will be useful,
28 # but WITHOUT ANY WARRANTY; without even the implied warranty of
29 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30 # GNU General Public License for more details.
31 #
32 # You should have received a copy of the GNU General Public License
33 # along with this program; if not, see <https://www.gnu.org/licenses/>.
34
35 VPATH = @srcdir@
36 am__is_gnu_make = { \
37   if test -z '$(MAKELEVEL)'; then \
38     false; \
39   elif test -n '$(MAKE_HOST)'; then \
40     true; \
41   elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
42     true; \
43   else \
44     false; \
45   fi; \
46 }
47 am__make_running_with_option = \
48   case $${target_option-} in \
49       ?) ;; \
50       *) echo "am__make_running_with_option: internal error: invalid" \
51               "target option '$${target_option-}' specified" >&2; \
52          exit 1;; \
53   esac; \
54   has_opt=no; \
55   sane_makeflags=$$MAKEFLAGS; \
56   if $(am__is_gnu_make); then \
57     sane_makeflags=$$MFLAGS; \
58   else \
59     case $$MAKEFLAGS in \
60       *\\[\ \   ]*) \
61         bs=\\; \
62         sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
63           | sed "s/$$bs$$bs[$$bs $$bs   ]*//g"`;; \
64     esac; \
65   fi; \
66   skip_next=no; \
67   strip_trailopt () \
68   { \
69     flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
70   }; \
71   for flg in $$sane_makeflags; do \
72     test $$skip_next = yes && { skip_next=no; continue; }; \
73     case $$flg in \
74       *=*|--*) continue;; \
75         -*I) strip_trailopt 'I'; skip_next=yes;; \
76       -*I?*) strip_trailopt 'I';; \
77         -*O) strip_trailopt 'O'; skip_next=yes;; \
78       -*O?*) strip_trailopt 'O';; \
79         -*l) strip_trailopt 'l'; skip_next=yes;; \
80       -*l?*) strip_trailopt 'l';; \
81       -[dEDm]) skip_next=yes;; \
82       -[JT]) skip_next=yes;; \
83     esac; \
84     case $$flg in \
85       *$$target_option*) has_opt=yes; break;; \
86     esac; \
87   done; \
88   test $$has_opt = yes
89 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
90 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
91 pkgdatadir = $(datadir)/@PACKAGE@
92 pkgincludedir = $(includedir)/@PACKAGE@
93 pkglibdir = $(libdir)/@PACKAGE@
94 pkglibexecdir = $(libexecdir)/@PACKAGE@
95 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
96 install_sh_DATA = $(install_sh) -c -m 644
97 install_sh_PROGRAM = $(install_sh) -c
98 install_sh_SCRIPT = $(install_sh) -c
99 INSTALL_HEADER = $(INSTALL_DATA)
100 transform = $(program_transform_name)
101 NORMAL_INSTALL = :
102 PRE_INSTALL = :
103 POST_INSTALL = :
104 NORMAL_UNINSTALL = :
105 PRE_UNINSTALL = :
106 POST_UNINSTALL = :
107 build_triplet = @build@
108 host_triplet = @host@
109 subdir = .
110 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
111 am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
112         $(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/gettext.m4 \
113         $(top_srcdir)/m4/gpg-error.m4 $(top_srcdir)/m4/iconv.m4 \
114         $(top_srcdir)/m4/ksba.m4 $(top_srcdir)/m4/lcmessage.m4 \
115         $(top_srcdir)/m4/ldap.m4 $(top_srcdir)/m4/lib-ld.m4 \
116         $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
117         $(top_srcdir)/m4/libassuan.m4 $(top_srcdir)/m4/libgcrypt.m4 \
118         $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/npth.m4 \
119         $(top_srcdir)/m4/ntbtls.m4 $(top_srcdir)/m4/pkg.m4 \
120         $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
121         $(top_srcdir)/m4/readline.m4 $(top_srcdir)/m4/socklen.m4 \
122         $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
123 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
124         $(ACLOCAL_M4)
125 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
126         $(am__configure_deps) $(dist_doc_DATA) $(am__DIST_COMMON)
127 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
128  configure.lineno config.status.lineno
129 mkinstalldirs = $(SHELL) $(top_srcdir)/build-aux/mkinstalldirs
130 CONFIG_HEADER = config.h
131 CONFIG_CLEAN_FILES =
132 CONFIG_CLEAN_VPATH_FILES =
133 AM_V_P = $(am__v_P_@AM_V@)
134 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
135 am__v_P_0 = false
136 am__v_P_1 = :
137 AM_V_GEN = $(am__v_GEN_@AM_V@)
138 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
139 am__v_GEN_0 = @echo "  GEN     " $@;
140 am__v_GEN_1 = 
141 AM_V_at = $(am__v_at_@AM_V@)
142 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
143 am__v_at_0 = @
144 am__v_at_1 = 
145 SOURCES =
146 DIST_SOURCES =
147 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
148         ctags-recursive dvi-recursive html-recursive info-recursive \
149         install-data-recursive install-dvi-recursive \
150         install-exec-recursive install-html-recursive \
151         install-info-recursive install-pdf-recursive \
152         install-ps-recursive install-recursive installcheck-recursive \
153         installdirs-recursive pdf-recursive ps-recursive \
154         tags-recursive uninstall-recursive
155 am__can_run_installinfo = \
156   case $$AM_UPDATE_INFO_DIR in \
157     n|no|NO) false;; \
158     *) (install-info --version) >/dev/null 2>&1;; \
159   esac
160 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
161 am__vpath_adj = case $$p in \
162     $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
163     *) f=$$p;; \
164   esac;
165 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
166 am__install_max = 40
167 am__nobase_strip_setup = \
168   srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
169 am__nobase_strip = \
170   for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
171 am__nobase_list = $(am__nobase_strip_setup); \
172   for p in $$list; do echo "$$p $$p"; done | \
173   sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
174   $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
175     if (++n[$$2] == $(am__install_max)) \
176       { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
177     END { for (dir in files) print dir, files[dir] }'
178 am__base_list = \
179   sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
180   sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
181 am__uninstall_files_from_dir = { \
182   test -z "$$files" \
183     || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
184     || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
185          $(am__cd) "$$dir" && rm -f $$files; }; \
186   }
187 am__installdirs = "$(DESTDIR)$(docdir)"
188 DATA = $(dist_doc_DATA)
189 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
190   distclean-recursive maintainer-clean-recursive
191 am__recursive_targets = \
192   $(RECURSIVE_TARGETS) \
193   $(RECURSIVE_CLEAN_TARGETS) \
194   $(am__extra_recursive_targets)
195 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
196         cscope distdir distdir-am dist dist-all distcheck
197 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
198         config.h.in
199 # Read a list of newline-separated strings from the standard input,
200 # and print each of them once, without duplicates.  Input order is
201 # *not* preserved.
202 am__uniquify_input = $(AWK) '\
203   BEGIN { nonempty = 0; } \
204   { items[$$0] = 1; nonempty = 1; } \
205   END { if (nonempty) { for (i in items) print i; }; } \
206 '
207 # Make sure the list of sources is unique.  This is necessary because,
208 # e.g., the same source file might be shared among _SOURCES variables
209 # for different programs/libraries.
210 am__define_uniq_tagged_files = \
211   list='$(am__tagged_files)'; \
212   unique=`for i in $$list; do \
213     if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
214   done | $(am__uniquify_input)`
215 ETAGS = etags
216 CTAGS = ctags
217 CSCOPE = cscope
218 DIST_SUBDIRS = m4 common regexp kbx g10 sm agent scd g13 dirmngr tools \
219         po doc tests tpm2d
220 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
221         $(top_srcdir)/build-aux/compile \
222         $(top_srcdir)/build-aux/config.guess \
223         $(top_srcdir)/build-aux/config.rpath \
224         $(top_srcdir)/build-aux/config.sub \
225         $(top_srcdir)/build-aux/install-sh \
226         $(top_srcdir)/build-aux/missing \
227         $(top_srcdir)/build-aux/mkinstalldirs ABOUT-NLS AUTHORS \
228         COPYING ChangeLog INSTALL NEWS README THANKS TODO \
229         build-aux/compile build-aux/config.guess \
230         build-aux/config.rpath build-aux/config.sub build-aux/depcomp \
231         build-aux/install-sh build-aux/mdate-sh build-aux/missing \
232         build-aux/mkinstalldirs build-aux/texinfo.tex
233 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
234 distdir = $(PACKAGE)-$(VERSION)
235 top_distdir = $(distdir)
236 am__remove_distdir = \
237   if test -d "$(distdir)"; then \
238     find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
239       && rm -rf "$(distdir)" \
240       || { sleep 5 && rm -rf "$(distdir)"; }; \
241   else :; fi
242 am__post_remove_distdir = $(am__remove_distdir)
243 am__relativize = \
244   dir0=`pwd`; \
245   sed_first='s,^\([^/]*\)/.*$$,\1,'; \
246   sed_rest='s,^[^/]*/*,,'; \
247   sed_last='s,^.*/\([^/]*\)$$,\1,'; \
248   sed_butlast='s,/*[^/]*$$,,'; \
249   while test -n "$$dir1"; do \
250     first=`echo "$$dir1" | sed -e "$$sed_first"`; \
251     if test "$$first" != "."; then \
252       if test "$$first" = ".."; then \
253         dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
254         dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
255       else \
256         first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
257         if test "$$first2" = "$$first"; then \
258           dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
259         else \
260           dir2="../$$dir2"; \
261         fi; \
262         dir0="$$dir0"/"$$first"; \
263       fi; \
264     fi; \
265     dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
266   done; \
267   reldir="$$dir2"
268 GZIP_ENV = --best
269 DIST_ARCHIVES = $(distdir).tar.bz2
270 DIST_TARGETS = dist-bzip2
271 distuninstallcheck_listfiles = find . -type f -print
272 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
273   | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
274 distcleancheck_listfiles = find . -type f -print
275 ACLOCAL = @ACLOCAL@
276 AMTAR = @AMTAR@
277 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
278 AR = @AR@
279 AUTOCONF = @AUTOCONF@
280 AUTOHEADER = @AUTOHEADER@
281 AUTOMAKE = @AUTOMAKE@
282 AWK = @AWK@
283 AWK_HEX_NUMBER_OPTION = @AWK_HEX_NUMBER_OPTION@
284 BUILD_FILEVERSION = @BUILD_FILEVERSION@
285 BUILD_HOSTNAME = @BUILD_HOSTNAME@
286 BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
287 BUILD_REVISION = @BUILD_REVISION@
288 BUILD_TIMESTAMP = @BUILD_TIMESTAMP@
289 BUILD_VERSION = @BUILD_VERSION@
290 CC = @CC@
291 CCDEPMODE = @CCDEPMODE@
292 CC_FOR_BUILD = @CC_FOR_BUILD@
293 CFLAGS = @CFLAGS@
294 CPP = @CPP@
295 CPPFLAGS = @CPPFLAGS@
296 CYGPATH_W = @CYGPATH_W@
297 DEFS = @DEFS@
298 DEPDIR = @DEPDIR@
299 DL_LIBS = @DL_LIBS@
300 DNSLIBS = @DNSLIBS@
301 ECHO_C = @ECHO_C@
302 ECHO_N = @ECHO_N@
303 ECHO_T = @ECHO_T@
304 EGREP = @EGREP@
305 ENCFS = @ENCFS@
306 EXEEXT = @EXEEXT@
307 FUSERMOUNT = @FUSERMOUNT@
308 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
309 GMSGFMT = @GMSGFMT@
310 GMSGFMT_015 = @GMSGFMT_015@
311 GNUPG_AGENT_PGM = @GNUPG_AGENT_PGM@
312 GNUPG_DIRMNGR_LDAP_PGM = @GNUPG_DIRMNGR_LDAP_PGM@
313 GNUPG_DIRMNGR_PGM = @GNUPG_DIRMNGR_PGM@
314 GNUPG_KEYBOXD_PGM = @GNUPG_KEYBOXD_PGM@
315 GNUPG_PINENTRY_PGM = @GNUPG_PINENTRY_PGM@
316 GNUPG_PROTECT_TOOL_PGM = @GNUPG_PROTECT_TOOL_PGM@
317 GNUPG_SCDAEMON_PGM = @GNUPG_SCDAEMON_PGM@
318 GNUPG_TPM2DAEMON_PGM = @GNUPG_TPM2DAEMON_PGM@
319 GPGKEYS_LDAP = @GPGKEYS_LDAP@
320 GPGRT_CONFIG = @GPGRT_CONFIG@
321 GPG_ERROR_CFLAGS = @GPG_ERROR_CFLAGS@
322 GPG_ERROR_CONFIG = @GPG_ERROR_CONFIG@
323 GPG_ERROR_LIBS = @GPG_ERROR_LIBS@
324 GPG_ERROR_MT_CFLAGS = @GPG_ERROR_MT_CFLAGS@
325 GPG_ERROR_MT_LIBS = @GPG_ERROR_MT_LIBS@
326 GREP = @GREP@
327 HAVE_LIBTSS = @HAVE_LIBTSS@
328 INSTALL = @INSTALL@
329 INSTALL_DATA = @INSTALL_DATA@
330 INSTALL_PROGRAM = @INSTALL_PROGRAM@
331 INSTALL_SCRIPT = @INSTALL_SCRIPT@
332 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
333 INTLLIBS = @INTLLIBS@
334 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
335 KSBA_CFLAGS = @KSBA_CFLAGS@
336 KSBA_CONFIG = @KSBA_CONFIG@
337 KSBA_LIBS = @KSBA_LIBS@
338 LBER_LIBS = @LBER_LIBS@
339 LDAPLIBS = @LDAPLIBS@
340 LDAP_CPPFLAGS = @LDAP_CPPFLAGS@
341 LDFLAGS = @LDFLAGS@
342 LIBASSUAN_CFLAGS = @LIBASSUAN_CFLAGS@
343 LIBASSUAN_CONFIG = @LIBASSUAN_CONFIG@
344 LIBASSUAN_LIBS = @LIBASSUAN_LIBS@
345 LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@
346 LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@
347 LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@
348 LIBGNUTLS_CFLAGS = @LIBGNUTLS_CFLAGS@
349 LIBGNUTLS_LIBS = @LIBGNUTLS_LIBS@
350 LIBICONV = @LIBICONV@
351 LIBINTL = @LIBINTL@
352 LIBOBJS = @LIBOBJS@
353 LIBREADLINE = @LIBREADLINE@
354 LIBS = @LIBS@
355 LIBTSS_CFLAGS = @LIBTSS_CFLAGS@
356 LIBTSS_LIBS = @LIBTSS_LIBS@
357 LIBUSB_CPPFLAGS = @LIBUSB_CPPFLAGS@
358 LIBUSB_LIBS = @LIBUSB_LIBS@
359 LN_S = @LN_S@
360 LTLIBICONV = @LTLIBICONV@
361 LTLIBINTL = @LTLIBINTL@
362 LTLIBOBJS = @LTLIBOBJS@
363 MAINT = @MAINT@
364 MAKEINFO = @MAKEINFO@
365 MKDIR_P = @MKDIR_P@
366 MSGFMT = @MSGFMT@
367 MSGFMT_015 = @MSGFMT_015@
368 MSGMERGE = @MSGMERGE@
369 NETLIBS = @NETLIBS@
370 NPTH_CFLAGS = @NPTH_CFLAGS@
371 NPTH_CONFIG = @NPTH_CONFIG@
372 NPTH_LIBS = @NPTH_LIBS@
373 NTBTLS_CFLAGS = @NTBTLS_CFLAGS@
374 NTBTLS_CONFIG = @NTBTLS_CONFIG@
375 NTBTLS_LIBS = @NTBTLS_LIBS@
376 OBJEXT = @OBJEXT@
377 PACKAGE = @PACKAGE@
378 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
379 PACKAGE_GT = @PACKAGE_GT@
380 PACKAGE_NAME = @PACKAGE_NAME@
381 PACKAGE_STRING = @PACKAGE_STRING@
382 PACKAGE_TARNAME = @PACKAGE_TARNAME@
383 PACKAGE_URL = @PACKAGE_URL@
384 PACKAGE_VERSION = @PACKAGE_VERSION@
385 PATH_SEPARATOR = @PATH_SEPARATOR@
386 PERL = @PERL@
387 PKG_CONFIG = @PKG_CONFIG@
388 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
389 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
390 POSUB = @POSUB@
391 RANLIB = @RANLIB@
392 SENDMAIL = @SENDMAIL@
393 SET_MAKE = @SET_MAKE@
394 SHELL = @SHELL@
395 SQLITE3_CFLAGS = @SQLITE3_CFLAGS@
396 SQLITE3_LIBS = @SQLITE3_LIBS@
397 STRIP = @STRIP@
398 SWTPM = @SWTPM@
399 SWTPM_IOCTL = @SWTPM_IOCTL@
400 SYSROOT = @SYSROOT@
401 TPMSERVER = @TPMSERVER@
402 TSSSTARTUP = @TSSSTARTUP@
403 TSS_INCLUDE = @TSS_INCLUDE@
404 USE_C99_CFLAGS = @USE_C99_CFLAGS@
405 USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
406 USE_NLS = @USE_NLS@
407 VERSION = @VERSION@
408 W32SOCKLIBS = @W32SOCKLIBS@
409 WINDRES = @WINDRES@
410 XGETTEXT = @XGETTEXT@
411 XGETTEXT_015 = @XGETTEXT_015@
412 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
413 YAT2M = @YAT2M@
414 ZLIBS = @ZLIBS@
415 abs_builddir = @abs_builddir@
416 abs_srcdir = @abs_srcdir@
417 abs_top_builddir = @abs_top_builddir@
418 abs_top_srcdir = @abs_top_srcdir@
419 ac_ct_CC = @ac_ct_CC@
420 am__include = @am__include@
421 am__leading_dot = @am__leading_dot@
422 am__quote = @am__quote@
423 am__tar = @am__tar@
424 am__untar = @am__untar@
425 bindir = @bindir@
426 build = @build@
427 build_alias = @build_alias@
428 build_cpu = @build_cpu@
429 build_os = @build_os@
430 build_vendor = @build_vendor@
431 builddir = @builddir@
432 datadir = @datadir@
433 datarootdir = @datarootdir@
434 docdir = @docdir@
435 dvidir = @dvidir@
436 exec_prefix = @exec_prefix@
437 host = @host@
438 host_alias = @host_alias@
439 host_cpu = @host_cpu@
440 host_os = @host_os@
441 host_vendor = @host_vendor@
442 htmldir = @htmldir@
443 includedir = @includedir@
444 infodir = @infodir@
445 install_sh = @install_sh@
446 libdir = @libdir@
447 libexecdir = @libexecdir@
448 localedir = @localedir@
449 localstatedir = @localstatedir@
450 mandir = @mandir@
451 mkdir_p = @mkdir_p@
452 oldincludedir = @oldincludedir@
453 pdfdir = @pdfdir@
454 prefix = @prefix@
455 program_transform_name = @program_transform_name@
456 psdir = @psdir@
457 runstatedir = @runstatedir@
458 sbindir = @sbindir@
459 sharedstatedir = @sharedstatedir@
460 srcdir = @srcdir@
461 sysconfdir = @sysconfdir@
462 target_alias = @target_alias@
463 top_build_prefix = @top_build_prefix@
464 top_builddir = @top_builddir@
465 top_srcdir = @top_srcdir@
466
467 # We want to also build the wixlib for use by GnuPG Desktop
468 WITH_MSI = 1
469
470 # Location of the released tarball archives.  This is prefixed by
471 # the variable RELEASE_ARCHIVE in ~/.gnupg-autogen.rc.  For example:
472 # RELEASE_ARCHIVE=user@host:archive/tarballs
473 RELEASE_ARCHIVE_SUFFIX = gnupg/v2.4
474 # The variable RELEASE_SIGNKEY in ~/.gnupg-autogen.rc is used
475 # to specify the key for signing.  For example:
476 # RELEASE_SIGNKEY=D8692123C4065DEA5E0F3AB5249B39D24F25E3B6
477
478 # Autoconf flags.
479 ACLOCAL_AMFLAGS = -I m4
480 AM_DISTCHECK_DVI_TARGET = pdf
481 AM_DISTCHECK_CONFIGURE_FLAGS = --enable-gnupg-builddir-envvar \
482   --enable-all-tests --enable-g13 \
483   --enable-gpgtar --enable-wks-tools --disable-ntbtls
484
485 GITLOG_TO_CHANGELOG = gitlog-to-changelog
486 EXTRA_DIST = build-aux/config.rpath build-aux/potomo autogen.sh autogen.rc \
487              ChangeLog-2011 po/ChangeLog-2011 build-aux/ChangeLog-2011     \
488              VERSION README.GIT build-aux/gitlog-to-changelog              \
489              COPYING.GPL2 COPYING.LGPL21 COPYING.LGPL3      \
490              COPYING.CC0 COPYING.other                      \
491              build-aux/git-log-fix build-aux/git-log-footer \
492              build-aux/getswdb.sh                           \
493              build-aux/speedo.mk                            \
494              build-aux/speedo/zlib.pc                       \
495              build-aux/speedo/w32/inst-options.ini          \
496              build-aux/speedo/w32/inst.nsi                  \
497              build-aux/speedo/w32/pkg-copyright.txt         \
498              build-aux/speedo/w32/g4wihelp.c                \
499              build-aux/speedo/w32/pango.modules             \
500              build-aux/speedo/w32/gdk-pixbuf-loaders.cache  \
501              build-aux/speedo/w32/exdll.h                   \
502              build-aux/speedo/w32/exdll.c                   \
503              build-aux/speedo/w32/README.txt                \
504              build-aux/speedo/w32/gnupg-logo-150x57.bmp     \
505              build-aux/speedo/w32/gnupg-logo-164x314.bmp    \
506              build-aux/speedo/w32/wixlib.wxs                \
507              build-aux/speedo/patches/atk-1.32.0.patch      \
508              build-aux/speedo/patches/libiconv-1.14.patch   \
509              build-aux/speedo/patches/pango-1.29.4.patch    \
510              build-aux/speedo/patches/sqlite.patch
511
512 DISTCLEANFILES = g10defs.h
513 @BUILD_GPG_FALSE@gpg = 
514 @BUILD_GPG_TRUE@gpg = g10
515 @BUILD_GPGSM_FALSE@sm = 
516 @BUILD_GPGSM_TRUE@sm = sm
517 @BUILD_AGENT_FALSE@agent = 
518 @BUILD_AGENT_TRUE@agent = agent
519 @BUILD_SCDAEMON_FALSE@scd = 
520 @BUILD_SCDAEMON_TRUE@scd = scd
521 @BUILD_G13_FALSE@g13 = 
522 @BUILD_G13_TRUE@g13 = g13
523 @BUILD_DIRMNGR_FALSE@dirmngr = 
524 @BUILD_DIRMNGR_TRUE@dirmngr = dirmngr
525 @BUILD_DOC_FALSE@doc = 
526 @BUILD_DOC_TRUE@doc = doc
527 @DISABLE_TESTS_FALSE@tests = tests
528 @DISABLE_TESTS_TRUE@tests = 
529 @BUILD_TPM2D_FALSE@tpm2d = 
530 @BUILD_TPM2D_TRUE@tpm2d = tpm2d
531 SUBDIRS = m4 common regexp kbx \
532           ${gpg} ${sm} ${agent} ${scd} ${g13} ${dirmngr} \
533           tools po ${doc} ${tests} ${tpm2d}
534
535 dist_doc_DATA = README
536 gen_start_date = 2011-12-01T06:00:00
537 TESTS_ENVIRONMENT = \
538         LC_ALL=C \
539         EXEEXT=$(EXEEXT) \
540         PATH=$(abs_top_builddir)/tests/gpgscm:$(PATH) \
541         abs_top_srcdir=$(abs_top_srcdir) \
542         objdir=$(abs_top_builddir) \
543         GNUPG_BUILD_ROOT="$(abs_top_builddir)" \
544         GNUPG_IN_TEST_SUITE=fact \
545         GPGSCM_PATH=$(abs_top_srcdir)/tests/gpgscm
546
547
548 # Names of to help the release target.
549 RELEASE_NAME = $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
550 RELEASE_W32_STEM_NAME = $(PACKAGE_TARNAME)-w32-$(PACKAGE_VERSION)
551 all: config.h
552         $(MAKE) $(AM_MAKEFLAGS) all-recursive
553
554 .SUFFIXES:
555 am--refresh: Makefile
556         @:
557 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
558         @for dep in $?; do \
559           case '$(am__configure_deps)' in \
560             *$$dep*) \
561               echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
562               $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
563                 && exit 0; \
564               exit 1;; \
565           esac; \
566         done; \
567         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
568         $(am__cd) $(top_srcdir) && \
569           $(AUTOMAKE) --gnu Makefile
570 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
571         @case '$?' in \
572           *config.status*) \
573             echo ' $(SHELL) ./config.status'; \
574             $(SHELL) ./config.status;; \
575           *) \
576             echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
577             cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
578         esac;
579
580 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
581         $(SHELL) ./config.status --recheck
582
583 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
584         $(am__cd) $(srcdir) && $(AUTOCONF)
585 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
586         $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
587 $(am__aclocal_m4_deps):
588
589 config.h: stamp-h1
590         @test -f $@ || rm -f stamp-h1
591         @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
592
593 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
594         @rm -f stamp-h1
595         cd $(top_builddir) && $(SHELL) ./config.status config.h
596 $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) 
597         ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
598         rm -f stamp-h1
599         touch $@
600
601 distclean-hdr:
602         -rm -f config.h stamp-h1
603 install-dist_docDATA: $(dist_doc_DATA)
604         @$(NORMAL_INSTALL)
605         @list='$(dist_doc_DATA)'; test -n "$(docdir)" || list=; \
606         if test -n "$$list"; then \
607           echo " $(MKDIR_P) '$(DESTDIR)$(docdir)'"; \
608           $(MKDIR_P) "$(DESTDIR)$(docdir)" || exit 1; \
609         fi; \
610         for p in $$list; do \
611           if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
612           echo "$$d$$p"; \
613         done | $(am__base_list) | \
614         while read files; do \
615           echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(docdir)'"; \
616           $(INSTALL_DATA) $$files "$(DESTDIR)$(docdir)" || exit $$?; \
617         done
618
619 uninstall-dist_docDATA:
620         @$(NORMAL_UNINSTALL)
621         @list='$(dist_doc_DATA)'; test -n "$(docdir)" || list=; \
622         files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
623         dir='$(DESTDIR)$(docdir)'; $(am__uninstall_files_from_dir)
624
625 # This directory's subdirectories are mostly independent; you can cd
626 # into them and run 'make' without going through this Makefile.
627 # To change the values of 'make' variables: instead of editing Makefiles,
628 # (1) if the variable is set in 'config.status', edit 'config.status'
629 #     (which will cause the Makefiles to be regenerated when you run 'make');
630 # (2) otherwise, pass the desired values on the 'make' command line.
631 $(am__recursive_targets):
632         @fail=; \
633         if $(am__make_keepgoing); then \
634           failcom='fail=yes'; \
635         else \
636           failcom='exit 1'; \
637         fi; \
638         dot_seen=no; \
639         target=`echo $@ | sed s/-recursive//`; \
640         case "$@" in \
641           distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
642           *) list='$(SUBDIRS)' ;; \
643         esac; \
644         for subdir in $$list; do \
645           echo "Making $$target in $$subdir"; \
646           if test "$$subdir" = "."; then \
647             dot_seen=yes; \
648             local_target="$$target-am"; \
649           else \
650             local_target="$$target"; \
651           fi; \
652           ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
653           || eval $$failcom; \
654         done; \
655         if test "$$dot_seen" = "no"; then \
656           $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
657         fi; test -z "$$fail"
658
659 ID: $(am__tagged_files)
660         $(am__define_uniq_tagged_files); mkid -fID $$unique
661 tags: tags-recursive
662 TAGS: tags
663
664 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
665         set x; \
666         here=`pwd`; \
667         if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
668           include_option=--etags-include; \
669           empty_fix=.; \
670         else \
671           include_option=--include; \
672           empty_fix=; \
673         fi; \
674         list='$(SUBDIRS)'; for subdir in $$list; do \
675           if test "$$subdir" = .; then :; else \
676             test ! -f $$subdir/TAGS || \
677               set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
678           fi; \
679         done; \
680         $(am__define_uniq_tagged_files); \
681         shift; \
682         if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
683           test -n "$$unique" || unique=$$empty_fix; \
684           if test $$# -gt 0; then \
685             $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
686               "$$@" $$unique; \
687           else \
688             $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
689               $$unique; \
690           fi; \
691         fi
692 ctags: ctags-recursive
693
694 CTAGS: ctags
695 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
696         $(am__define_uniq_tagged_files); \
697         test -z "$(CTAGS_ARGS)$$unique" \
698           || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
699              $$unique
700
701 GTAGS:
702         here=`$(am__cd) $(top_builddir) && pwd` \
703           && $(am__cd) $(top_srcdir) \
704           && gtags -i $(GTAGS_ARGS) "$$here"
705 cscope: cscope.files
706         test ! -s cscope.files \
707           || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
708 clean-cscope:
709         -rm -f cscope.files
710 cscope.files: clean-cscope cscopelist
711 cscopelist: cscopelist-recursive
712
713 cscopelist-am: $(am__tagged_files)
714         list='$(am__tagged_files)'; \
715         case "$(srcdir)" in \
716           [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
717           *) sdir=$(subdir)/$(srcdir) ;; \
718         esac; \
719         for i in $$list; do \
720           if test -f "$$i"; then \
721             echo "$(subdir)/$$i"; \
722           else \
723             echo "$$sdir/$$i"; \
724           fi; \
725         done >> $(top_builddir)/cscope.files
726
727 distclean-tags:
728         -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
729         -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
730
731 distdir: $(BUILT_SOURCES)
732         $(MAKE) $(AM_MAKEFLAGS) distdir-am
733
734 distdir-am: $(DISTFILES)
735         $(am__remove_distdir)
736         test -d "$(distdir)" || mkdir "$(distdir)"
737         @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
738         topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
739         list='$(DISTFILES)'; \
740           dist_files=`for file in $$list; do echo $$file; done | \
741           sed -e "s|^$$srcdirstrip/||;t" \
742               -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
743         case $$dist_files in \
744           */*) $(MKDIR_P) `echo "$$dist_files" | \
745                            sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
746                            sort -u` ;; \
747         esac; \
748         for file in $$dist_files; do \
749           if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
750           if test -d $$d/$$file; then \
751             dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
752             if test -d "$(distdir)/$$file"; then \
753               find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
754             fi; \
755             if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
756               cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
757               find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
758             fi; \
759             cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
760           else \
761             test -f "$(distdir)/$$file" \
762             || cp -p $$d/$$file "$(distdir)/$$file" \
763             || exit 1; \
764           fi; \
765         done
766         @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
767           if test "$$subdir" = .; then :; else \
768             $(am__make_dryrun) \
769               || test -d "$(distdir)/$$subdir" \
770               || $(MKDIR_P) "$(distdir)/$$subdir" \
771               || exit 1; \
772             dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
773             $(am__relativize); \
774             new_distdir=$$reldir; \
775             dir1=$$subdir; dir2="$(top_distdir)"; \
776             $(am__relativize); \
777             new_top_distdir=$$reldir; \
778             echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
779             echo "     am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
780             ($(am__cd) $$subdir && \
781               $(MAKE) $(AM_MAKEFLAGS) \
782                 top_distdir="$$new_top_distdir" \
783                 distdir="$$new_distdir" \
784                 am__remove_distdir=: \
785                 am__skip_length_check=: \
786                 am__skip_mode_fix=: \
787                 distdir) \
788               || exit 1; \
789           fi; \
790         done
791         $(MAKE) $(AM_MAKEFLAGS) \
792           top_distdir="$(top_distdir)" distdir="$(distdir)" \
793           dist-hook
794         -test -n "$(am__skip_mode_fix)" \
795         || find "$(distdir)" -type d ! -perm -755 \
796                 -exec chmod u+rwx,go+rx {} \; -o \
797           ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
798           ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
799           ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
800         || chmod -R a+r "$(distdir)"
801 dist-gzip: distdir
802         tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
803         $(am__post_remove_distdir)
804 dist-bzip2: distdir
805         tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
806         $(am__post_remove_distdir)
807
808 dist-lzip: distdir
809         tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
810         $(am__post_remove_distdir)
811
812 dist-xz: distdir
813         tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
814         $(am__post_remove_distdir)
815
816 dist-zstd: distdir
817         tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
818         $(am__post_remove_distdir)
819
820 dist-tarZ: distdir
821         @echo WARNING: "Support for distribution archives compressed with" \
822                        "legacy program 'compress' is deprecated." >&2
823         @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
824         tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
825         $(am__post_remove_distdir)
826
827 dist-shar: distdir
828         @echo WARNING: "Support for shar distribution archives is" \
829                        "deprecated." >&2
830         @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
831         shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
832         $(am__post_remove_distdir)
833
834 dist-zip: distdir
835         -rm -f $(distdir).zip
836         zip -rq $(distdir).zip $(distdir)
837         $(am__post_remove_distdir)
838
839 dist dist-all:
840         $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
841         $(am__post_remove_distdir)
842
843 # This target untars the dist file and tries a VPATH configuration.  Then
844 # it guarantees that the distribution is self-contained by making another
845 # tarfile.
846 distcheck: dist
847         case '$(DIST_ARCHIVES)' in \
848         *.tar.gz*) \
849           eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
850         *.tar.bz2*) \
851           bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
852         *.tar.lz*) \
853           lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
854         *.tar.xz*) \
855           xz -dc $(distdir).tar.xz | $(am__untar) ;;\
856         *.tar.Z*) \
857           uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
858         *.shar.gz*) \
859           eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
860         *.zip*) \
861           unzip $(distdir).zip ;;\
862         *.tar.zst*) \
863           zstd -dc $(distdir).tar.zst | $(am__untar) ;;\
864         esac
865         chmod -R a-w $(distdir)
866         chmod u+w $(distdir)
867         mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
868         chmod a-w $(distdir)
869         test -d $(distdir)/_build || exit 0; \
870         dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
871           && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
872           && $(MAKE) $(AM_MAKEFLAGS) distcheck-hook \
873           && am__cwd=`pwd` \
874           && $(am__cd) $(distdir)/_build/sub \
875           && ../../configure \
876             $(AM_DISTCHECK_CONFIGURE_FLAGS) \
877             $(DISTCHECK_CONFIGURE_FLAGS) \
878             --srcdir=../.. --prefix="$$dc_install_base" \
879           && $(MAKE) $(AM_MAKEFLAGS) \
880           && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \
881           && $(MAKE) $(AM_MAKEFLAGS) check \
882           && $(MAKE) $(AM_MAKEFLAGS) install \
883           && $(MAKE) $(AM_MAKEFLAGS) installcheck \
884           && $(MAKE) $(AM_MAKEFLAGS) uninstall \
885           && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
886                 distuninstallcheck \
887           && chmod -R a-w "$$dc_install_base" \
888           && ({ \
889                (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
890                && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
891                && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
892                && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
893                     distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
894               } || { rm -rf "$$dc_destdir"; exit 1; }) \
895           && rm -rf "$$dc_destdir" \
896           && $(MAKE) $(AM_MAKEFLAGS) dist \
897           && rm -rf $(DIST_ARCHIVES) \
898           && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
899           && cd "$$am__cwd" \
900           || exit 1
901         $(am__post_remove_distdir)
902         @(echo "$(distdir) archives ready for distribution: "; \
903           list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
904           sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
905 distuninstallcheck:
906         @test -n '$(distuninstallcheck_dir)' || { \
907           echo 'ERROR: trying to run $@ with an empty' \
908                '$$(distuninstallcheck_dir)' >&2; \
909           exit 1; \
910         }; \
911         $(am__cd) '$(distuninstallcheck_dir)' || { \
912           echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
913           exit 1; \
914         }; \
915         test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
916            || { echo "ERROR: files left after uninstall:" ; \
917                 if test -n "$(DESTDIR)"; then \
918                   echo "  (check DESTDIR support)"; \
919                 fi ; \
920                 $(distuninstallcheck_listfiles) ; \
921                 exit 1; } >&2
922 distcleancheck: distclean
923         @if test '$(srcdir)' = . ; then \
924           echo "ERROR: distcleancheck can only run from a VPATH build" ; \
925           exit 1 ; \
926         fi
927         @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
928           || { echo "ERROR: files left in build directory after distclean:" ; \
929                $(distcleancheck_listfiles) ; \
930                exit 1; } >&2
931 check-am: all-am
932 check: check-recursive
933 all-am: Makefile $(DATA) config.h all-local
934 installdirs: installdirs-recursive
935 installdirs-am:
936         for dir in "$(DESTDIR)$(docdir)"; do \
937           test -z "$$dir" || $(MKDIR_P) "$$dir"; \
938         done
939 install: install-recursive
940 install-exec: install-exec-recursive
941 install-data: install-data-recursive
942 uninstall: uninstall-recursive
943
944 install-am: all-am
945         @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
946
947 installcheck: installcheck-recursive
948 install-strip:
949         if test -z '$(STRIP)'; then \
950           $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
951             install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
952               install; \
953         else \
954           $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
955             install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
956             "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
957         fi
958 mostlyclean-generic:
959
960 clean-generic:
961
962 distclean-generic:
963         -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
964         -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
965         -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
966
967 maintainer-clean-generic:
968         @echo "This command is intended for maintainers to use"
969         @echo "it deletes files that may require special tools to rebuild."
970 @HAVE_W32_SYSTEM_FALSE@install-data-hook:
971 clean: clean-recursive
972
973 clean-am: clean-generic mostlyclean-am
974
975 distclean: distclean-recursive
976         -rm -f $(am__CONFIG_DISTCLEAN_FILES)
977         -rm -f Makefile
978 distclean-am: clean-am distclean-generic distclean-hdr distclean-local \
979         distclean-tags
980
981 dvi: dvi-recursive
982
983 dvi-am:
984
985 html: html-recursive
986
987 html-am:
988
989 info: info-recursive
990
991 info-am:
992
993 install-data-am: install-dist_docDATA
994         @$(NORMAL_INSTALL)
995         $(MAKE) $(AM_MAKEFLAGS) install-data-hook
996 install-dvi: install-dvi-recursive
997
998 install-dvi-am:
999
1000 install-exec-am:
1001
1002 install-html: install-html-recursive
1003
1004 install-html-am:
1005
1006 install-info: install-info-recursive
1007
1008 install-info-am:
1009
1010 install-man:
1011
1012 install-pdf: install-pdf-recursive
1013
1014 install-pdf-am:
1015
1016 install-ps: install-ps-recursive
1017
1018 install-ps-am:
1019
1020 installcheck-am:
1021
1022 maintainer-clean: maintainer-clean-recursive
1023         -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1024         -rm -rf $(top_srcdir)/autom4te.cache
1025         -rm -f Makefile
1026 maintainer-clean-am: distclean-am maintainer-clean-generic
1027
1028 mostlyclean: mostlyclean-recursive
1029
1030 mostlyclean-am: mostlyclean-generic
1031
1032 pdf: pdf-recursive
1033
1034 pdf-am:
1035
1036 ps: ps-recursive
1037
1038 ps-am:
1039
1040 uninstall-am: uninstall-dist_docDATA
1041
1042 .MAKE: $(am__recursive_targets) all install-am install-data-am \
1043         install-strip
1044
1045 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am all-local \
1046         am--refresh check check-am clean clean-cscope clean-generic \
1047         cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
1048         dist-gzip dist-hook dist-lzip dist-shar dist-tarZ dist-xz \
1049         dist-zip dist-zstd distcheck distclean distclean-generic \
1050         distclean-hdr distclean-local distclean-tags distcleancheck \
1051         distdir distuninstallcheck dvi dvi-am html html-am info \
1052         info-am install install-am install-data install-data-am \
1053         install-data-hook install-dist_docDATA install-dvi \
1054         install-dvi-am install-exec install-exec-am install-html \
1055         install-html-am install-info install-info-am install-man \
1056         install-pdf install-pdf-am install-ps install-ps-am \
1057         install-strip installcheck installcheck-am installdirs \
1058         installdirs-am maintainer-clean maintainer-clean-generic \
1059         mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \
1060         tags-am uninstall uninstall-am uninstall-dist_docDATA
1061
1062 .PRECIOUS: Makefile
1063
1064
1065 # Create test directory etc/gnupg so that we have an
1066 # empty sysconfdir and bin where we put out gpgconf.ctl.
1067 # we also put symlinks to the actual binaries there.
1068 # Unfortunately there is no all-hook, but symlinks have the
1069 # nice property that they can be created even for not yet
1070 # created files.
1071 all-local:
1072         @-$(MKDIR_P) bin etc/gnupg libexec
1073         @cat $(srcdir)/tests/gpgconf.ctl.in > bin/gpgconf.ctl
1074         (set -e; cd bin; \
1075          for i in gpg gpgv; \
1076              do ln -sf ../g10/$$i$(EXEEXT) .; done; \
1077          for i in gpgsm; \
1078              do ln -sf ../sm/$$i$(EXEEXT) .; done; \
1079          for i in gpg-agent; \
1080              do ln -sf ../agent/$$i$(EXEEXT) .; done; \
1081          for i in dirmngr; \
1082              do ln -sf ../dirmngr/$$i$(EXEEXT) .; done; \
1083          for i in gpgconf gpg-connect-agent gpgtar gpg-card; \
1084              do ln -sf ../tools/$$i$(EXEEXT) .; done; \
1085          cd ../libexec ; \
1086          for i in keyboxd; \
1087              do ln -sf ../kbx/$$i$(EXEEXT) .; done; \
1088          for i in scdaemon; \
1089              do ln -sf ../scd/$$i$(EXEEXT) .; done; \
1090          for i in gpg-preset-passphrase; \
1091              do ln -sf ../agent/$$i$(EXEEXT) .; done; \
1092          for i in tpm2daemon; \
1093              do [ -f ../tpm2d/$$i$(EXEEXT) ] && ln -sf ../tpm2d/$$i$(EXEEXT) .; done; \
1094          echo "created links to binaries" )
1095
1096 # Clean up our test directories but take care that this is never
1097 # called from / or /usr/local
1098 distclean-local:
1099         @if pwd | grep gnupg 2>/dev/null; then rm -rf etc bin libexec; fi
1100
1101 dist-hook: gen-ChangeLog
1102
1103 distcheck-hook:
1104         set -e; ( \
1105         pref="#+macro: gnupg24_" ;\
1106         reldate="$$(date -u +%Y-%m-%d)" ;\
1107         echo "$${pref}ver  $(PACKAGE_VERSION)"  ;\
1108         echo "$${pref}date $${reldate}" ;\
1109         list='$(DIST_ARCHIVES)'; for i in $$list; do \
1110           case "$$i" in *.tar.bz2) \
1111             echo "$${pref}size $$(wc -c <$$i|awk '{print int($$1/1024)}')k" ;\
1112             echo "$${pref}sha1 $$(sha1sum <$$i|cut -d' ' -f1)" ;\
1113             echo "$${pref}sha2 $$(sha256sum <$$i|cut -d' ' -f1)" ;;\
1114           esac;\
1115         done ) | tee $(distdir).swdb
1116
1117 @HAVE_W32_SYSTEM_TRUE@install-data-hook:
1118 @HAVE_W32_SYSTEM_TRUE@  set -e; \
1119 @HAVE_W32_SYSTEM_TRUE@  for i in $$($(top_srcdir)/build-aux/potomo \
1120 @HAVE_W32_SYSTEM_TRUE@                     --get-linguas $(top_srcdir)/po) ; do \
1121 @HAVE_W32_SYSTEM_TRUE@           $(MKDIR_P) "$(DESTDIR)$(localedir)/$$i/LC_MESSAGES" || true; \
1122 @HAVE_W32_SYSTEM_TRUE@           rm -f "$(DESTDIR)$(localedir)/$$i/LC_MESSAGES/gnupg2.mo" \
1123 @HAVE_W32_SYSTEM_TRUE@                                                 2>/dev/null || true; \
1124 @HAVE_W32_SYSTEM_TRUE@           $(top_srcdir)/build-aux/potomo $(top_srcdir)/po/$$i.po \
1125 @HAVE_W32_SYSTEM_TRUE@              "$(DESTDIR)$(localedir)/$$i/LC_MESSAGES/gnupg2.mo" ; \
1126 @HAVE_W32_SYSTEM_TRUE@  done
1127 .PHONY: gen-ChangeLog
1128 gen-ChangeLog:
1129         if test -e $(top_srcdir)/.git; then                             \
1130           (cd $(top_srcdir) &&                                          \
1131             $(GITLOG_TO_CHANGELOG) --append-dot --tear-off              \
1132             --amend=build-aux/git-log-fix                               \
1133             --since=$(gen_start_date) ) > $(distdir)/cl-t;              \
1134           cat $(top_srcdir)/build-aux/git-log-footer >> $(distdir)/cl-t;  \
1135           rm -f $(distdir)/ChangeLog;                                   \
1136           mv $(distdir)/cl-t $(distdir)/ChangeLog;                      \
1137         fi
1138
1139 stowinstall:
1140         $(MAKE) $(AM_MAKEFLAGS) install prefix=/usr/local/stow/gnupg
1141
1142 .PHONY: check-all release sign-release
1143 check-all:
1144         $(TESTS_ENVIRONMENT) \
1145           $(abs_top_builddir)/tests/gpgscm/gpgscm$(EXEEXT) \
1146           $(abs_srcdir)/tests/run-tests.scm $(TESTFLAGS) $(TESTS)
1147
1148 release:
1149         +(set -e;\
1150          if [ "$(abs_top_builddir)" = "$(abs_top_srcdir)" ]; then \
1151            echo "error: build directory must not be the source directory" >&2;\
1152            exit 2;\
1153          fi ;\
1154          echo "/* Build started at $$(date -uIseconds) */" ;\
1155          [ -n "$(WITH_MSI)" ] && echo "/* (with MSI build support) */" ;\
1156          cd $(top_srcdir); \
1157          ./autogen.sh --force; \
1158          cd $(abs_top_builddir); \
1159          rm -rf dist; mkdir dist ; cd dist ; \
1160          mkopt=""; \
1161          if [ -n "$$CUSTOM_SWDB" ]; then \
1162             mkopt="CUSTOM_SWB=1"; \
1163             x=$$(grep '^OVERRIDE_TARBALLS=' \
1164                  $$HOME/.gnupg-autogen.rc|cut -d= -f2);\
1165             if [ -f "$$x/swdb.lst" ]; then \
1166               echo "/* Copying swdb.lst from the overrides directory */"; \
1167               cp "$$x/swdb.lst" . ; \
1168               cp "$$x/swdb.lst.sig" . ; \
1169             fi; \
1170          fi; \
1171          echo "/* Running configure */";\
1172          $(abs_top_srcdir)/configure --enable-maintainer-mode; \
1173          echo "/* Running make distcheck */";\
1174          $(MAKE) distcheck TESTFLAGS=--parallel; \
1175          echo "/* Unpacking release */";\
1176          $(AMTAR) xjf $(RELEASE_NAME).tar.bz2 ;\
1177          target=w32-release ;\
1178          [ -n "$(WITH_MSI)" ] && target=w32-msi-release ;\
1179          echo "/* Running $(MAKE) -f  $(RELEASE_NAME)/build-aux/speedo.mk $${target} */";\
1180          $(MAKE) -f  $(RELEASE_NAME)/build-aux/speedo.mk $${target} ;\
1181          echo "/* Build finished at $$(date -uIseconds) */" ;\
1182          echo "/*" ;\
1183          echo " * Please run the final step interactively:" ;\
1184          echo " *   make sign-release $${WITH_MSI:+WITH_MSI=1}" ;\
1185          echo " */" ;\
1186         ) 2>&1 | tee "$(RELEASE_NAME).buildlog"
1187
1188 sign-release:
1189          +(set -e; \
1190           test $$(pwd | sed 's,.*/,,') = dist || cd dist; \
1191           x=$$(grep '^RELEASE_ARCHIVE=' $$HOME/.gnupg-autogen.rc|cut -d= -f2);\
1192           if [ -z "$$x" ]; then \
1193              echo "error: RELEASE_ARCHIVE missing in ~/.gnupg-autogen.rc">&2; \
1194              exit 2;\
1195           fi;\
1196           myarchive="$$x/$(RELEASE_ARCHIVE_SUFFIX)";\
1197           x=$$(grep '^RELEASE_SIGNKEY=' $$HOME/.gnupg-autogen.rc|cut -d= -f2);\
1198           if [ -z "$$x" ]; then \
1199              echo "error: RELEASE_SIGNKEY missing in ~/.gnupg-autogen.rc">&2; \
1200              exit 2;\
1201           fi;\
1202           mysignkey="$$x";\
1203           release_w32_name="$(RELEASE_W32_STEM_NAME)_$$(date -u +%Y%m%d)" ;\
1204           files1="$(RELEASE_NAME).tar.bz2 \
1205                   $${release_w32_name}.tar.xz \
1206                   $${release_w32_name}.exe" ;\
1207           files2="$(RELEASE_NAME).tar.bz2.sig \
1208                   $(RELEASE_NAME).swdb \
1209                   $(RELEASE_NAME).buildlog \
1210                   $${release_w32_name}.tar.xz.sig \
1211                   $${release_w32_name}.exe.sig    \
1212                   $${release_w32_name}.exe.swdb" ;\
1213           wixlibfile="$${release_w32_name}.wixlib";\
1214           $(MAKE) -f $(RELEASE_NAME)/build-aux/speedo.mk w32-sign-installer ;\
1215           echo "/* Signing the source tarball ..." ;\
1216           gpg -sbu $$mysignkey $(RELEASE_NAME).tar.bz2 ;\
1217           echo "/* Signing the W32 source tarball ..." ;\
1218           gpg -sbu $$mysignkey $${release_w32_name}.tar.xz ;\
1219           echo "/* Signing the W32 installer ..." ;\
1220           gpg -sbu $$mysignkey $${release_w32_name}.exe ;\
1221           if [ -e $${wixlibfile} ]; then \
1222               echo "/* Signing the Wixlib ..." ;\
1223               gpg -sbu $$mysignkey $${wixlibfile} ;\
1224           fi; \
1225           cat $(RELEASE_NAME).swdb >swdb.snippet;\
1226           echo '#+macro: gnupg24_branch  STABLE-BRANCH-2-4' >>swdb.snippet;\
1227           cat  $${release_w32_name}.exe.swdb >>swdb.snippet;\
1228           echo >>swdb.snippet ;\
1229           sha1sum $${files1} >>swdb.snippet ;\
1230           cat "../$(RELEASE_NAME).buildlog" swdb.snippet \
1231                | gzip >$(RELEASE_NAME).buildlog ;\
1232           echo "Release created - copying it to the archive ..." ;\
1233           scp -p $${files1} $${files2} $$myarchive/ \
1234             || echo "/* Error copying files to the archive - ignored */" ;\
1235           if [ -e $${wixlibfile} ]; then\
1236             scp -p $${wixlibfile} $${wixlibfile}.sig $$myarchive/ \
1237               || echo "/* Error copying wixlib to the archive - ignored. */" ;\
1238           fi ;\
1239           echo '/*' ;\
1240           echo ' * All done; for checksums see dist/swdb.snippet' ;\
1241           echo ' */' ;\
1242          )
1243
1244 # Tell versions [3.59,3.63) of GNU make to not export all variables.
1245 # Otherwise a system limit (for SysV at least) may be exceeded.
1246 .NOEXPORT: