1# Makefile.in generated by automake 1.15 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994-2014 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
17VPATH = @srcdir@
18am__is_gnu_make = { \
19  if test -z '$(MAKELEVEL)'; then \
20    false; \
21  elif test -n '$(MAKE_HOST)'; then \
22    true; \
23  elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
24    true; \
25  else \
26    false; \
27  fi; \
28}
29am__make_running_with_option = \
30  case $${target_option-} in \
31      ?) ;; \
32      *) echo "am__make_running_with_option: internal error: invalid" \
33              "target option '$${target_option-}' specified" >&2; \
34         exit 1;; \
35  esac; \
36  has_opt=no; \
37  sane_makeflags=$$MAKEFLAGS; \
38  if $(am__is_gnu_make); then \
39    sane_makeflags=$$MFLAGS; \
40  else \
41    case $$MAKEFLAGS in \
42      *\\[\ \	]*) \
43        bs=\\; \
44        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
45          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
46    esac; \
47  fi; \
48  skip_next=no; \
49  strip_trailopt () \
50  { \
51    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
52  }; \
53  for flg in $$sane_makeflags; do \
54    test $$skip_next = yes && { skip_next=no; continue; }; \
55    case $$flg in \
56      *=*|--*) continue;; \
57        -*I) strip_trailopt 'I'; skip_next=yes;; \
58      -*I?*) strip_trailopt 'I';; \
59        -*O) strip_trailopt 'O'; skip_next=yes;; \
60      -*O?*) strip_trailopt 'O';; \
61        -*l) strip_trailopt 'l'; skip_next=yes;; \
62      -*l?*) strip_trailopt 'l';; \
63      -[dEDm]) skip_next=yes;; \
64      -[JT]) skip_next=yes;; \
65    esac; \
66    case $$flg in \
67      *$$target_option*) has_opt=yes; break;; \
68    esac; \
69  done; \
70  test $$has_opt = yes
71am__make_dryrun = (target_option=n; $(am__make_running_with_option))
72am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
73pkgdatadir = $(datadir)/@PACKAGE@
74pkgincludedir = $(includedir)/@PACKAGE@
75pkglibdir = $(libdir)/@PACKAGE@
76pkglibexecdir = $(libexecdir)/@PACKAGE@
77am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
78install_sh_DATA = $(install_sh) -c -m 644
79install_sh_PROGRAM = $(install_sh) -c
80install_sh_SCRIPT = $(install_sh) -c
81INSTALL_HEADER = $(INSTALL_DATA)
82transform = $(program_transform_name)
83NORMAL_INSTALL = :
84PRE_INSTALL = :
85POST_INSTALL = :
86NORMAL_UNINSTALL = :
87PRE_UNINSTALL = :
88POST_UNINSTALL = :
89build_triplet = @build@
90host_triplet = @host@
91target_triplet = @target@
92subdir = .
93ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
94am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
95	$(top_srcdir)/m4/adl_recursive_eval.m4 \
96	$(top_srcdir)/m4/cf3_check_proper_func.m4 \
97	$(top_srcdir)/m4/cf3_path_root_prog.m4 \
98	$(top_srcdir)/m4/cf3_with_library.m4 \
99	$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
100	$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
101	$(top_srcdir)/m4/lt~obsolete.m4 \
102	$(top_srcdir)/m4/old-autoconf.m4 $(top_srcdir)/m4/snprintf.m4 \
103	$(top_srcdir)/m4/strndup.m4 $(top_srcdir)/m4/tar.m4 \
104	$(top_srcdir)/m4/cf3_gcc_flags.m4 \
105	$(top_srcdir)/m4/cf3_platforms.m4 $(top_srcdir)/configure.ac
106am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
107	$(ACLOCAL_M4)
108DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
109	$(am__configure_deps) $(am__DIST_COMMON)
110am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
111 configure.lineno config.status.lineno
112mkinstalldirs = $(install_sh) -d
113CONFIG_HEADER = config.h
114CONFIG_CLEAN_FILES = configure_flags.env misc/init.d/cfengine3 \
115	misc/systemd/cfengine3.service misc/systemd/cf-apache.service \
116	misc/systemd/cf-execd.service misc/systemd/cf-hub.service \
117	misc/systemd/cf-monitord.service \
118	misc/systemd/cf-postgres.service \
119	misc/systemd/cf-runalerts.service \
120	misc/systemd/cf-serverd.service config.post.h
121CONFIG_CLEAN_VPATH_FILES =
122AM_V_P = $(am__v_P_@AM_V@)
123am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
124am__v_P_0 = false
125am__v_P_1 = :
126AM_V_GEN = $(am__v_GEN_@AM_V@)
127am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
128am__v_GEN_0 = @echo "  GEN     " $@;
129am__v_GEN_1 =
130AM_V_at = $(am__v_at_@AM_V@)
131am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
132am__v_at_0 = @
133am__v_at_1 =
134SOURCES =
135DIST_SOURCES =
136RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
137	ctags-recursive dvi-recursive html-recursive info-recursive \
138	install-data-recursive install-dvi-recursive \
139	install-exec-recursive install-html-recursive \
140	install-info-recursive install-pdf-recursive \
141	install-ps-recursive install-recursive installcheck-recursive \
142	installdirs-recursive pdf-recursive ps-recursive \
143	tags-recursive uninstall-recursive
144am__can_run_installinfo = \
145  case $$AM_UPDATE_INFO_DIR in \
146    n|no|NO) false;; \
147    *) (install-info --version) >/dev/null 2>&1;; \
148  esac
149am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
150am__vpath_adj = case $$p in \
151    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
152    *) f=$$p;; \
153  esac;
154am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
155am__install_max = 40
156am__nobase_strip_setup = \
157  srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
158am__nobase_strip = \
159  for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
160am__nobase_list = $(am__nobase_strip_setup); \
161  for p in $$list; do echo "$$p $$p"; done | \
162  sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
163  $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
164    if (++n[$$2] == $(am__install_max)) \
165      { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
166    END { for (dir in files) print dir, files[dir] }'
167am__base_list = \
168  sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
169  sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
170am__uninstall_files_from_dir = { \
171  test -z "$$files" \
172    || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
173    || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
174         $(am__cd) "$$dir" && rm -f $$files; }; \
175  }
176am__installdirs = "$(DESTDIR)$(docdir)"
177DATA = $(doc_DATA)
178RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive	\
179  distclean-recursive maintainer-clean-recursive
180am__recursive_targets = \
181  $(RECURSIVE_TARGETS) \
182  $(RECURSIVE_CLEAN_TARGETS) \
183  $(am__extra_recursive_targets)
184AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
185	cscope distdir dist dist-all distcheck
186am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
187	$(LISP)config.h.in
188# Read a list of newline-separated strings from the standard input,
189# and print each of them once, without duplicates.  Input order is
190# *not* preserved.
191am__uniquify_input = $(AWK) '\
192  BEGIN { nonempty = 0; } \
193  { items[$$0] = 1; nonempty = 1; } \
194  END { if (nonempty) { for (i in items) print i; }; } \
195'
196# Make sure the list of sources is unique.  This is necessary because,
197# e.g., the same source file might be shared among _SOURCES variables
198# for different programs/libraries.
199am__define_uniq_tagged_files = \
200  list='$(am__tagged_files)'; \
201  unique=`for i in $$list; do \
202    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
203  done | $(am__uniquify_input)`
204ETAGS = etags
205CTAGS = ctags
206CSCOPE = cscope
207DIST_SUBDIRS = $(SUBDIRS)
208am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
209	$(srcdir)/config.post.h.in $(srcdir)/configure_flags.env.in \
210	$(top_srcdir)/misc/init.d/cfengine3.in \
211	$(top_srcdir)/misc/systemd/cf-apache.service.in \
212	$(top_srcdir)/misc/systemd/cf-execd.service.in \
213	$(top_srcdir)/misc/systemd/cf-hub.service.in \
214	$(top_srcdir)/misc/systemd/cf-monitord.service.in \
215	$(top_srcdir)/misc/systemd/cf-postgres.service.in \
216	$(top_srcdir)/misc/systemd/cf-runalerts.service.in \
217	$(top_srcdir)/misc/systemd/cf-serverd.service.in \
218	$(top_srcdir)/misc/systemd/cfengine3.service.in AUTHORS \
219	ChangeLog INSTALL compile config.guess config.sub install-sh \
220	ltmain.sh missing
221DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
222distdir = $(PACKAGE)-$(VERSION)
223top_distdir = $(distdir)
224am__remove_distdir = \
225  if test -d "$(distdir)"; then \
226    find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
227      && rm -rf "$(distdir)" \
228      || { sleep 5 && rm -rf "$(distdir)"; }; \
229  else :; fi
230am__post_remove_distdir = $(am__remove_distdir)
231am__relativize = \
232  dir0=`pwd`; \
233  sed_first='s,^\([^/]*\)/.*$$,\1,'; \
234  sed_rest='s,^[^/]*/*,,'; \
235  sed_last='s,^.*/\([^/]*\)$$,\1,'; \
236  sed_butlast='s,/*[^/]*$$,,'; \
237  while test -n "$$dir1"; do \
238    first=`echo "$$dir1" | sed -e "$$sed_first"`; \
239    if test "$$first" != "."; then \
240      if test "$$first" = ".."; then \
241        dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
242        dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
243      else \
244        first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
245        if test "$$first2" = "$$first"; then \
246          dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
247        else \
248          dir2="../$$dir2"; \
249        fi; \
250        dir0="$$dir0"/"$$first"; \
251      fi; \
252    fi; \
253    dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
254  done; \
255  reldir="$$dir2"
256DIST_ARCHIVES = $(distdir).tar.gz
257GZIP_ENV = --best
258DIST_TARGETS = dist-gzip
259distuninstallcheck_listfiles = find . -type f -print
260am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
261  | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
262distcleancheck_listfiles = find . -type f -print
263ACLOCAL = @ACLOCAL@
264AMTAR = @AMTAR@
265AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
266AR = @AR@
267AUTOCONF = @AUTOCONF@
268AUTOHEADER = @AUTOHEADER@
269AUTOMAKE = @AUTOMAKE@
270AWK = @AWK@
271CC = @CC@
272CCDEPMODE = @CCDEPMODE@
273CFLAGS = @CFLAGS@
274CORE_CFLAGS = @CORE_CFLAGS@
275CORE_CPPFLAGS = @CORE_CPPFLAGS@
276CORE_LDFLAGS = @CORE_LDFLAGS@
277CORE_LIBS = @CORE_LIBS@
278CPP = @CPP@
279CPPFLAGS = @CPPFLAGS@
280CYGPATH_W = @CYGPATH_W@
281DEFS = @DEFS@
282DEPDIR = @DEPDIR@
283DLLTOOL = @DLLTOOL@
284DSYMUTIL = @DSYMUTIL@
285DUMPBIN = @DUMPBIN@
286ECHO_C = @ECHO_C@
287ECHO_N = @ECHO_N@
288ECHO_T = @ECHO_T@
289EGREP = @EGREP@
290EXEEXT = @EXEEXT@
291FGREP = @FGREP@
292GETCONF = @GETCONF@
293GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
294GREP = @GREP@
295HOSTNAME = @HOSTNAME@
296INIT_D_PATH = @INIT_D_PATH@
297INSTALL = @INSTALL@
298INSTALL_DATA = @INSTALL_DATA@
299INSTALL_PROGRAM = @INSTALL_PROGRAM@
300INSTALL_SCRIPT = @INSTALL_SCRIPT@
301INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
302KMEM_GROUP = @KMEM_GROUP@
303LCOV = @LCOV@
304LCOV_GENHTML = @LCOV_GENHTML@
305LD = @LD@
306LDFLAGS = @LDFLAGS@
307LEX = @LEX@
308LEXLIB = @LEXLIB@
309LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
310LIBACL_CFLAGS = @LIBACL_CFLAGS@
311LIBACL_CPPFLAGS = @LIBACL_CPPFLAGS@
312LIBACL_LDFLAGS = @LIBACL_LDFLAGS@
313LIBACL_LIBS = @LIBACL_LIBS@
314LIBACL_PATH = @LIBACL_PATH@
315LIBCURL_CFLAGS = @LIBCURL_CFLAGS@
316LIBCURL_CPPFLAGS = @LIBCURL_CPPFLAGS@
317LIBCURL_LDFLAGS = @LIBCURL_LDFLAGS@
318LIBCURL_LIBS = @LIBCURL_LIBS@
319LIBCURL_PATH = @LIBCURL_PATH@
320LIBOBJS = @LIBOBJS@
321LIBS = @LIBS@
322LIBTOOL = @LIBTOOL@
323LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@
324LIBVIRT_CPPFLAGS = @LIBVIRT_CPPFLAGS@
325LIBVIRT_LDFLAGS = @LIBVIRT_LDFLAGS@
326LIBVIRT_LIBS = @LIBVIRT_LIBS@
327LIBVIRT_PATH = @LIBVIRT_PATH@
328LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
329LIBXML2_CPPFLAGS = @LIBXML2_CPPFLAGS@
330LIBXML2_LDFLAGS = @LIBXML2_LDFLAGS@
331LIBXML2_LIBS = @LIBXML2_LIBS@
332LIBXML2_PATH = @LIBXML2_PATH@
333LIBYAML_CFLAGS = @LIBYAML_CFLAGS@
334LIBYAML_CPPFLAGS = @LIBYAML_CPPFLAGS@
335LIBYAML_LDFLAGS = @LIBYAML_LDFLAGS@
336LIBYAML_LIBS = @LIBYAML_LIBS@
337LIBYAML_PATH = @LIBYAML_PATH@
338LIPO = @LIPO@
339LMDB_CFLAGS = @LMDB_CFLAGS@
340LMDB_CPPFLAGS = @LMDB_CPPFLAGS@
341LMDB_LDFLAGS = @LMDB_LDFLAGS@
342LMDB_LIBS = @LMDB_LIBS@
343LMDB_PATH = @LMDB_PATH@
344LN_S = @LN_S@
345LTLIBOBJS = @LTLIBOBJS@
346LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
347MAINT = @MAINT@
348MAKEINFO = @MAKEINFO@
349MANIFEST_TOOL = @MANIFEST_TOOL@
350MKDIR_P = @MKDIR_P@
351MYSQL_CFLAGS = @MYSQL_CFLAGS@
352MYSQL_CPPFLAGS = @MYSQL_CPPFLAGS@
353MYSQL_LDFLAGS = @MYSQL_LDFLAGS@
354MYSQL_LIBS = @MYSQL_LIBS@
355MYSQL_PATH = @MYSQL_PATH@
356NEED_SETGID = @NEED_SETGID@
357NM = @NM@
358NMEDIT = @NMEDIT@
359OBJDUMP = @OBJDUMP@
360OBJEXT = @OBJEXT@
361OPENSSL_CFLAGS = @OPENSSL_CFLAGS@
362OPENSSL_CPPFLAGS = @OPENSSL_CPPFLAGS@
363OPENSSL_LDFLAGS = @OPENSSL_LDFLAGS@
364OPENSSL_LIBS = @OPENSSL_LIBS@
365OPENSSL_PATH = @OPENSSL_PATH@
366OS_ENVIRONMENT_PATH = @OS_ENVIRONMENT_PATH@
367OTOOL = @OTOOL@
368OTOOL64 = @OTOOL64@
369PACKAGE = @PACKAGE@
370PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
371PACKAGE_NAME = @PACKAGE_NAME@
372PACKAGE_STRING = @PACKAGE_STRING@
373PACKAGE_TARNAME = @PACKAGE_TARNAME@
374PACKAGE_URL = @PACKAGE_URL@
375PACKAGE_VERSION = @PACKAGE_VERSION@
376PAM_CFLAGS = @PAM_CFLAGS@
377PAM_CPPFLAGS = @PAM_CPPFLAGS@
378PAM_LDFLAGS = @PAM_LDFLAGS@
379PAM_LIBS = @PAM_LIBS@
380PAM_PATH = @PAM_PATH@
381PATH_SEPARATOR = @PATH_SEPARATOR@
382PCRE_CFLAGS = @PCRE_CFLAGS@
383PCRE_CPPFLAGS = @PCRE_CPPFLAGS@
384PCRE_LDFLAGS = @PCRE_LDFLAGS@
385PCRE_LIBS = @PCRE_LIBS@
386PCRE_PATH = @PCRE_PATH@
387PERL = @PERL@
388POSTGRESQL_CFLAGS = @POSTGRESQL_CFLAGS@
389POSTGRESQL_CPPFLAGS = @POSTGRESQL_CPPFLAGS@
390POSTGRESQL_LDFLAGS = @POSTGRESQL_LDFLAGS@
391POSTGRESQL_LIBS = @POSTGRESQL_LIBS@
392POSTGRESQL_PATH = @POSTGRESQL_PATH@
393PTHREAD_CC = @PTHREAD_CC@
394PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
395PTHREAD_LIBS = @PTHREAD_LIBS@
396QDBM_CFLAGS = @QDBM_CFLAGS@
397QDBM_CPPFLAGS = @QDBM_CPPFLAGS@
398QDBM_LDFLAGS = @QDBM_LDFLAGS@
399QDBM_LIBS = @QDBM_LIBS@
400QDBM_PATH = @QDBM_PATH@
401RANLIB = @RANLIB@
402SED = @SED@
403SET_MAKE = @SET_MAKE@
404SHELL = @SHELL@
405STRIP = @STRIP@
406SYSTEMD_SERVICE_PATH = @SYSTEMD_SERVICE_PATH@
407TOKYOCABINET_CFLAGS = @TOKYOCABINET_CFLAGS@
408TOKYOCABINET_CPPFLAGS = @TOKYOCABINET_CPPFLAGS@
409TOKYOCABINET_LDFLAGS = @TOKYOCABINET_LDFLAGS@
410TOKYOCABINET_LIBS = @TOKYOCABINET_LIBS@
411TOKYOCABINET_PATH = @TOKYOCABINET_PATH@
412VERSION = @VERSION@
413YACC = @YACC@
414YFLAGS = @YFLAGS@
415abs_builddir = @abs_builddir@
416abs_srcdir = @abs_srcdir@
417abs_top_builddir = @abs_top_builddir@
418abs_top_srcdir = @abs_top_srcdir@
419ac_ct_AR = @ac_ct_AR@
420ac_ct_CC = @ac_ct_CC@
421ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
422acx_pthread_config = @acx_pthread_config@
423am__include = @am__include@
424am__leading_dot = @am__leading_dot@
425am__quote = @am__quote@
426am__tar = @am__tar@
427am__untar = @am__untar@
428bindir = @bindir@
429build = @build@
430build_alias = @build_alias@
431build_cpu = @build_cpu@
432build_os = @build_os@
433build_vendor = @build_vendor@
434builddir = @builddir@
435datadir = @datadir@
436datarootdir = @datarootdir@
437docdir = @docdir@
438dvidir = @dvidir@
439enable_builtin_extensions = @enable_builtin_extensions@
440exec_prefix = @exec_prefix@
441host = @host@
442host_alias = @host_alias@
443host_cpu = @host_cpu@
444host_os = @host_os@
445host_vendor = @host_vendor@
446htmldir = @htmldir@
447hw_cv_func_ctime_proper = @hw_cv_func_ctime_proper@
448hw_cv_func_mkdir_proper = @hw_cv_func_mkdir_proper@
449hw_cv_func_rename_proper = @hw_cv_func_rename_proper@
450hw_cv_func_stat_proper = @hw_cv_func_stat_proper@
451includedir = @includedir@
452infodir = @infodir@
453inputdir = @inputdir@
454install_sh = @install_sh@
455libdir = @libdir@
456libexecdir = @libexecdir@
457localedir = @localedir@
458localstatedir = @localstatedir@
459logdir = @logdir@
460mandir = @mandir@
461masterdir = @masterdir@
462mkdir_p = @mkdir_p@
463oldincludedir = @oldincludedir@
464pdfdir = @pdfdir@
465piddir = @piddir@
466prefix = @prefix@
467program_transform_name = @program_transform_name@
468projlibdir = @projlibdir@
469psdir = @psdir@
470runstatedir = @runstatedir@
471sbindir = @sbindir@
472sharedstatedir = @sharedstatedir@
473srcdir = @srcdir@
474statedir = @statedir@
475subdirs = @subdirs@
476sysconfdir = @sysconfdir@
477systemctl = @systemctl@
478target = @target@
479target_alias = @target_alias@
480target_cpu = @target_cpu@
481target_os = @target_os@
482target_vendor = @target_vendor@
483top_build_prefix = @top_build_prefix@
484top_builddir = @top_builddir@
485top_srcdir = @top_srcdir@
486workdir = @workdir@
487
488#
489#  Copyright 2020 Northern.tech AS
490#
491#  This file is part of CFEngine 3 - written and maintained by Northern.tech AS.
492#
493#  This program is free software; you can redistribute it and/or modify it
494#  under the terms of the GNU General Public License as published by the
495#  Free Software Foundation; version 3.
496#
497#  This program is distributed in the hope that it will be useful,
498#  but WITHOUT ANY WARRANTY; without even the implied warranty of
499#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
500#  GNU General Public License for more details.
501#
502# You should have received a copy of the GNU General Public License
503# along with this program; if not, write to the Free Software
504# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
505#
506# To the extent this program is licensed as part of the Enterprise
507# versions of CFEngine, the applicable Commercial Open Source License
508# (COSL) may apply to this file if you as a licensee so wish it. See
509# included file COSL.txt.
510#
511AUTOMAKE_OPTIONS = foreign
512MAKEFLAGS = $(if $(filter-out 0,$(V)),,--no-print-directory --quiet)
513LCOV_FLAGS = $(if $(filter-out 0,$(V)),,-q)
514SUBDIRS = \
515	libntech \
516	libcfnet \
517	libenv \
518	cf-check \
519	libpromises \
520	cf-agent \
521	cf-execd \
522	cf-key \
523	cf-monitord \
524	cf-promises \
525	cf-runagent \
526	cf-serverd \
527	cf-testd \
528	cf-upgrade \
529	cf-net \
530	cf-secret \
531	misc \
532	ext \
533	examples \
534	tests \
535	contrib/vagrant-ci/centos-6-x64
536
537
538# Hide the buildsystem's username, at least with GNU tar.
539TAR_OPTIONS = --owner=0 --group=0
540EXTRA_DIST = ChangeLog INSTALL README.md LICENSE CFVERSION
541doc_DATA = README.md ChangeLog
542
543#
544# Some basic clean ups
545#
546MOSTLYCLEANFILES = *~
547
548#
549# Get everything removed down to where rebuilding requires:
550# "configure; make; make install"
551#
552DISTCLEANFILES =
553
554#
555# Get everything removed down to where rebuilding requires:
556# "aclocal; autoconf; autoheader; automake --add-missing"
557# "configure; make; make install"
558#
559MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess config.sub \
560	configure install-sh missing mkinstalldirs depcomp ylwrap \
561	ltmain.sh mdate-sh
562
563
564#
565# Pass proper flags to aclocal to pick up Libtool macros
566#
567ACLOCAL_AMFLAGS = -I m4
568
569################################################################################
570# Identical to what is in libpromises/Makefile.am.
571# This is because there is a circular dependency libcfnet <-> libpromises
572# so we need to generate it before everything else.
573################################################################################
574BUILT_SOURCES = \
575	$(srcdir)/libpromises/enterprise_extension.c \
576	$(srcdir)/libpromises/enterprise_extension.h
577
578V_PERL = $(cf__v_PERL_$(V))
579cf__v_PERL_ = $(cf__v_PERL_$(AM_DEFAULT_VERBOSITY))
580cf__v_PERL_0 = @echo "  PERL    " "$@";
581cf__v_PERL_1 =
582V_SED = $(cf__v_SED_$(V))
583cf__v_SED_ = $(cf__v_SED_$(AM_DEFAULT_VERBOSITY))
584cf__v_SED_0 = @echo "  SED     " "$@";
585cf__v_SED_1 =
586
587#
588# Get everything removed down to where rebuilding requires:
589# "make; make install"
590#
591CLEANFILES = cfengine-lcov-base.info cfengine-lcov.info \
592	$(BUILT_SOURCES)
593
594all: $(BUILT_SOURCES) config.h
595	$(MAKE) $(AM_MAKEFLAGS) all-recursive
596
597.SUFFIXES:
598am--refresh: Makefile
599	@:
600$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
601	@for dep in $?; do \
602	  case '$(am__configure_deps)' in \
603	    *$$dep*) \
604	      echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
605	      $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
606		&& exit 0; \
607	      exit 1;; \
608	  esac; \
609	done; \
610	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
611	$(am__cd) $(top_srcdir) && \
612	  $(AUTOMAKE) --foreign Makefile
613Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
614	@case '$?' in \
615	  *config.status*) \
616	    echo ' $(SHELL) ./config.status'; \
617	    $(SHELL) ./config.status;; \
618	  *) \
619	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
620	    cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
621	esac;
622
623$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
624	$(SHELL) ./config.status --recheck
625
626$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
627	$(am__cd) $(srcdir) && $(AUTOCONF)
628$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
629	$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
630$(am__aclocal_m4_deps):
631
632config.h: stamp-h1
633	@test -f $@ || rm -f stamp-h1
634	@test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
635
636stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
637	@rm -f stamp-h1
638	cd $(top_builddir) && $(SHELL) ./config.status config.h
639$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
640	($(am__cd) $(top_srcdir) && $(AUTOHEADER))
641	rm -f stamp-h1
642	touch $@
643
644distclean-hdr:
645	-rm -f config.h stamp-h1
646configure_flags.env: $(top_builddir)/config.status $(srcdir)/configure_flags.env.in
647	cd $(top_builddir) && $(SHELL) ./config.status $@
648misc/init.d/cfengine3: $(top_builddir)/config.status $(top_srcdir)/misc/init.d/cfengine3.in
649	cd $(top_builddir) && $(SHELL) ./config.status $@
650misc/systemd/cfengine3.service: $(top_builddir)/config.status $(top_srcdir)/misc/systemd/cfengine3.service.in
651	cd $(top_builddir) && $(SHELL) ./config.status $@
652misc/systemd/cf-apache.service: $(top_builddir)/config.status $(top_srcdir)/misc/systemd/cf-apache.service.in
653	cd $(top_builddir) && $(SHELL) ./config.status $@
654misc/systemd/cf-execd.service: $(top_builddir)/config.status $(top_srcdir)/misc/systemd/cf-execd.service.in
655	cd $(top_builddir) && $(SHELL) ./config.status $@
656misc/systemd/cf-hub.service: $(top_builddir)/config.status $(top_srcdir)/misc/systemd/cf-hub.service.in
657	cd $(top_builddir) && $(SHELL) ./config.status $@
658misc/systemd/cf-monitord.service: $(top_builddir)/config.status $(top_srcdir)/misc/systemd/cf-monitord.service.in
659	cd $(top_builddir) && $(SHELL) ./config.status $@
660misc/systemd/cf-postgres.service: $(top_builddir)/config.status $(top_srcdir)/misc/systemd/cf-postgres.service.in
661	cd $(top_builddir) && $(SHELL) ./config.status $@
662misc/systemd/cf-runalerts.service: $(top_builddir)/config.status $(top_srcdir)/misc/systemd/cf-runalerts.service.in
663	cd $(top_builddir) && $(SHELL) ./config.status $@
664misc/systemd/cf-serverd.service: $(top_builddir)/config.status $(top_srcdir)/misc/systemd/cf-serverd.service.in
665	cd $(top_builddir) && $(SHELL) ./config.status $@
666config.post.h: $(top_builddir)/config.status $(srcdir)/config.post.h.in
667	cd $(top_builddir) && $(SHELL) ./config.status $@
668
669mostlyclean-libtool:
670	-rm -f *.lo
671
672clean-libtool:
673	-rm -rf .libs _libs
674
675distclean-libtool:
676	-rm -f libtool config.lt
677install-docDATA: $(doc_DATA)
678	@$(NORMAL_INSTALL)
679	@list='$(doc_DATA)'; test -n "$(docdir)" || list=; \
680	if test -n "$$list"; then \
681	  echo " $(MKDIR_P) '$(DESTDIR)$(docdir)'"; \
682	  $(MKDIR_P) "$(DESTDIR)$(docdir)" || exit 1; \
683	fi; \
684	for p in $$list; do \
685	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
686	  echo "$$d$$p"; \
687	done | $(am__base_list) | \
688	while read files; do \
689	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(docdir)'"; \
690	  $(INSTALL_DATA) $$files "$(DESTDIR)$(docdir)" || exit $$?; \
691	done
692
693uninstall-docDATA:
694	@$(NORMAL_UNINSTALL)
695	@list='$(doc_DATA)'; test -n "$(docdir)" || list=; \
696	files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
697	dir='$(DESTDIR)$(docdir)'; $(am__uninstall_files_from_dir)
698
699# This directory's subdirectories are mostly independent; you can cd
700# into them and run 'make' without going through this Makefile.
701# To change the values of 'make' variables: instead of editing Makefiles,
702# (1) if the variable is set in 'config.status', edit 'config.status'
703#     (which will cause the Makefiles to be regenerated when you run 'make');
704# (2) otherwise, pass the desired values on the 'make' command line.
705$(am__recursive_targets):
706	@fail=; \
707	if $(am__make_keepgoing); then \
708	  failcom='fail=yes'; \
709	else \
710	  failcom='exit 1'; \
711	fi; \
712	dot_seen=no; \
713	target=`echo $@ | sed s/-recursive//`; \
714	case "$@" in \
715	  distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
716	  *) list='$(SUBDIRS)' ;; \
717	esac; \
718	for subdir in $$list; do \
719	  echo "Making $$target in $$subdir"; \
720	  if test "$$subdir" = "."; then \
721	    dot_seen=yes; \
722	    local_target="$$target-am"; \
723	  else \
724	    local_target="$$target"; \
725	  fi; \
726	  ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
727	  || eval $$failcom; \
728	done; \
729	if test "$$dot_seen" = "no"; then \
730	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
731	fi; test -z "$$fail"
732
733ID: $(am__tagged_files)
734	$(am__define_uniq_tagged_files); mkid -fID $$unique
735tags: tags-recursive
736TAGS: tags
737
738tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
739	set x; \
740	here=`pwd`; \
741	if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
742	  include_option=--etags-include; \
743	  empty_fix=.; \
744	else \
745	  include_option=--include; \
746	  empty_fix=; \
747	fi; \
748	list='$(SUBDIRS)'; for subdir in $$list; do \
749	  if test "$$subdir" = .; then :; else \
750	    test ! -f $$subdir/TAGS || \
751	      set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
752	  fi; \
753	done; \
754	$(am__define_uniq_tagged_files); \
755	shift; \
756	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
757	  test -n "$$unique" || unique=$$empty_fix; \
758	  if test $$# -gt 0; then \
759	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
760	      "$$@" $$unique; \
761	  else \
762	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
763	      $$unique; \
764	  fi; \
765	fi
766ctags: ctags-recursive
767
768CTAGS: ctags
769ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
770	$(am__define_uniq_tagged_files); \
771	test -z "$(CTAGS_ARGS)$$unique" \
772	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
773	     $$unique
774
775GTAGS:
776	here=`$(am__cd) $(top_builddir) && pwd` \
777	  && $(am__cd) $(top_srcdir) \
778	  && gtags -i $(GTAGS_ARGS) "$$here"
779cscope: cscope.files
780	test ! -s cscope.files \
781	  || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
782clean-cscope:
783	-rm -f cscope.files
784cscope.files: clean-cscope cscopelist
785cscopelist: cscopelist-recursive
786
787cscopelist-am: $(am__tagged_files)
788	list='$(am__tagged_files)'; \
789	case "$(srcdir)" in \
790	  [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
791	  *) sdir=$(subdir)/$(srcdir) ;; \
792	esac; \
793	for i in $$list; do \
794	  if test -f "$$i"; then \
795	    echo "$(subdir)/$$i"; \
796	  else \
797	    echo "$$sdir/$$i"; \
798	  fi; \
799	done >> $(top_builddir)/cscope.files
800
801distclean-tags:
802	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
803	-rm -f cscope.out cscope.in.out cscope.po.out cscope.files
804
805distdir: $(DISTFILES)
806	$(am__remove_distdir)
807	test -d "$(distdir)" || mkdir "$(distdir)"
808	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
809	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
810	list='$(DISTFILES)'; \
811	  dist_files=`for file in $$list; do echo $$file; done | \
812	  sed -e "s|^$$srcdirstrip/||;t" \
813	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
814	case $$dist_files in \
815	  */*) $(MKDIR_P) `echo "$$dist_files" | \
816			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
817			   sort -u` ;; \
818	esac; \
819	for file in $$dist_files; do \
820	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
821	  if test -d $$d/$$file; then \
822	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
823	    if test -d "$(distdir)/$$file"; then \
824	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
825	    fi; \
826	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
827	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
828	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
829	    fi; \
830	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
831	  else \
832	    test -f "$(distdir)/$$file" \
833	    || cp -p $$d/$$file "$(distdir)/$$file" \
834	    || exit 1; \
835	  fi; \
836	done
837	@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
838	  if test "$$subdir" = .; then :; else \
839	    $(am__make_dryrun) \
840	      || test -d "$(distdir)/$$subdir" \
841	      || $(MKDIR_P) "$(distdir)/$$subdir" \
842	      || exit 1; \
843	    dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
844	    $(am__relativize); \
845	    new_distdir=$$reldir; \
846	    dir1=$$subdir; dir2="$(top_distdir)"; \
847	    $(am__relativize); \
848	    new_top_distdir=$$reldir; \
849	    echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
850	    echo "     am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
851	    ($(am__cd) $$subdir && \
852	      $(MAKE) $(AM_MAKEFLAGS) \
853	        top_distdir="$$new_top_distdir" \
854	        distdir="$$new_distdir" \
855		am__remove_distdir=: \
856		am__skip_length_check=: \
857		am__skip_mode_fix=: \
858	        distdir) \
859	      || exit 1; \
860	  fi; \
861	done
862	-test -n "$(am__skip_mode_fix)" \
863	|| find "$(distdir)" -type d ! -perm -755 \
864		-exec chmod u+rwx,go+rx {} \; -o \
865	  ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
866	  ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
867	  ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
868	|| chmod -R a+r "$(distdir)"
869dist-gzip: distdir
870	tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
871	$(am__post_remove_distdir)
872
873dist-bzip2: distdir
874	tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
875	$(am__post_remove_distdir)
876
877dist-lzip: distdir
878	tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
879	$(am__post_remove_distdir)
880
881dist-xz: distdir
882	tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
883	$(am__post_remove_distdir)
884
885dist-tarZ: distdir
886	@echo WARNING: "Support for distribution archives compressed with" \
887		       "legacy program 'compress' is deprecated." >&2
888	@echo WARNING: "It will be removed altogether in Automake 2.0" >&2
889	tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
890	$(am__post_remove_distdir)
891
892dist-shar: distdir
893	@echo WARNING: "Support for shar distribution archives is" \
894	               "deprecated." >&2
895	@echo WARNING: "It will be removed altogether in Automake 2.0" >&2
896	shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
897	$(am__post_remove_distdir)
898
899dist-zip: distdir
900	-rm -f $(distdir).zip
901	zip -rq $(distdir).zip $(distdir)
902	$(am__post_remove_distdir)
903
904dist dist-all:
905	$(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
906	$(am__post_remove_distdir)
907
908# This target untars the dist file and tries a VPATH configuration.  Then
909# it guarantees that the distribution is self-contained by making another
910# tarfile.
911distcheck: dist
912	case '$(DIST_ARCHIVES)' in \
913	*.tar.gz*) \
914	  GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
915	*.tar.bz2*) \
916	  bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
917	*.tar.lz*) \
918	  lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
919	*.tar.xz*) \
920	  xz -dc $(distdir).tar.xz | $(am__untar) ;;\
921	*.tar.Z*) \
922	  uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
923	*.shar.gz*) \
924	  GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
925	*.zip*) \
926	  unzip $(distdir).zip ;;\
927	esac
928	chmod -R a-w $(distdir)
929	chmod u+w $(distdir)
930	mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
931	chmod a-w $(distdir)
932	test -d $(distdir)/_build || exit 0; \
933	dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
934	  && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
935	  && am__cwd=`pwd` \
936	  && $(am__cd) $(distdir)/_build/sub \
937	  && ../../configure \
938	    $(AM_DISTCHECK_CONFIGURE_FLAGS) \
939	    $(DISTCHECK_CONFIGURE_FLAGS) \
940	    --srcdir=../.. --prefix="$$dc_install_base" \
941	  && $(MAKE) $(AM_MAKEFLAGS) \
942	  && $(MAKE) $(AM_MAKEFLAGS) dvi \
943	  && $(MAKE) $(AM_MAKEFLAGS) check \
944	  && $(MAKE) $(AM_MAKEFLAGS) install \
945	  && $(MAKE) $(AM_MAKEFLAGS) installcheck \
946	  && $(MAKE) $(AM_MAKEFLAGS) uninstall \
947	  && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
948	        distuninstallcheck \
949	  && chmod -R a-w "$$dc_install_base" \
950	  && ({ \
951	       (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
952	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
953	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
954	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
955	            distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
956	      } || { rm -rf "$$dc_destdir"; exit 1; }) \
957	  && rm -rf "$$dc_destdir" \
958	  && $(MAKE) $(AM_MAKEFLAGS) dist \
959	  && rm -rf $(DIST_ARCHIVES) \
960	  && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
961	  && cd "$$am__cwd" \
962	  || exit 1
963	$(am__post_remove_distdir)
964	@(echo "$(distdir) archives ready for distribution: "; \
965	  list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
966	  sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
967distuninstallcheck:
968	@test -n '$(distuninstallcheck_dir)' || { \
969	  echo 'ERROR: trying to run $@ with an empty' \
970	       '$$(distuninstallcheck_dir)' >&2; \
971	  exit 1; \
972	}; \
973	$(am__cd) '$(distuninstallcheck_dir)' || { \
974	  echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
975	  exit 1; \
976	}; \
977	test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
978	   || { echo "ERROR: files left after uninstall:" ; \
979	        if test -n "$(DESTDIR)"; then \
980	          echo "  (check DESTDIR support)"; \
981	        fi ; \
982	        $(distuninstallcheck_listfiles) ; \
983	        exit 1; } >&2
984distcleancheck: distclean
985	@if test '$(srcdir)' = . ; then \
986	  echo "ERROR: distcleancheck can only run from a VPATH build" ; \
987	  exit 1 ; \
988	fi
989	@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
990	  || { echo "ERROR: files left in build directory after distclean:" ; \
991	       $(distcleancheck_listfiles) ; \
992	       exit 1; } >&2
993check-am: all-am
994check: $(BUILT_SOURCES)
995	$(MAKE) $(AM_MAKEFLAGS) check-recursive
996all-am: Makefile $(DATA) config.h
997installdirs: installdirs-recursive
998installdirs-am:
999	for dir in "$(DESTDIR)$(docdir)"; do \
1000	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
1001	done
1002install: $(BUILT_SOURCES)
1003	$(MAKE) $(AM_MAKEFLAGS) install-recursive
1004install-exec: install-exec-recursive
1005install-data: install-data-recursive
1006uninstall: uninstall-recursive
1007
1008install-am: all-am
1009	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1010
1011installcheck: installcheck-recursive
1012install-strip:
1013	if test -z '$(STRIP)'; then \
1014	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1015	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1016	      install; \
1017	else \
1018	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1019	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1020	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
1021	fi
1022mostlyclean-generic:
1023	-test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
1024
1025clean-generic:
1026	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
1027
1028distclean-generic:
1029	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
1030	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
1031	-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
1032
1033maintainer-clean-generic:
1034	@echo "This command is intended for maintainers to use"
1035	@echo "it deletes files that may require special tools to rebuild."
1036	-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
1037	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
1038clean: clean-recursive
1039
1040clean-am: clean-generic clean-libtool mostlyclean-am
1041
1042distclean: distclean-recursive
1043	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
1044	-rm -f Makefile
1045distclean-am: clean-am distclean-generic distclean-hdr \
1046	distclean-libtool distclean-tags
1047
1048dvi: dvi-recursive
1049
1050dvi-am:
1051
1052html: html-recursive
1053
1054html-am:
1055
1056info: info-recursive
1057
1058info-am:
1059
1060install-data-am: install-data-local install-docDATA
1061
1062install-dvi: install-dvi-recursive
1063
1064install-dvi-am:
1065
1066install-exec-am:
1067
1068install-html: install-html-recursive
1069
1070install-html-am:
1071
1072install-info: install-info-recursive
1073
1074install-info-am:
1075
1076install-man:
1077
1078install-pdf: install-pdf-recursive
1079
1080install-pdf-am:
1081
1082install-ps: install-ps-recursive
1083
1084install-ps-am:
1085
1086installcheck-am:
1087
1088maintainer-clean: maintainer-clean-recursive
1089	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
1090	-rm -rf $(top_srcdir)/autom4te.cache
1091	-rm -f Makefile
1092maintainer-clean-am: distclean-am maintainer-clean-generic
1093
1094mostlyclean: mostlyclean-recursive
1095
1096mostlyclean-am: mostlyclean-generic mostlyclean-libtool
1097
1098pdf: pdf-recursive
1099
1100pdf-am:
1101
1102ps: ps-recursive
1103
1104ps-am:
1105
1106uninstall-am: uninstall-docDATA
1107
1108.MAKE: $(am__recursive_targets) all check install install-am \
1109	install-strip
1110
1111.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
1112	am--refresh check check-am clean clean-cscope clean-generic \
1113	clean-libtool cscope cscopelist-am ctags ctags-am dist \
1114	dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \
1115	dist-xz dist-zip distcheck distclean distclean-generic \
1116	distclean-hdr distclean-libtool distclean-tags distcleancheck \
1117	distdir distuninstallcheck dvi dvi-am html html-am info \
1118	info-am install install-am install-data install-data-am \
1119	install-data-local install-docDATA install-dvi install-dvi-am \
1120	install-exec install-exec-am install-html install-html-am \
1121	install-info install-info-am install-man install-pdf \
1122	install-pdf-am install-ps install-ps-am install-strip \
1123	installcheck installcheck-am installdirs installdirs-am \
1124	maintainer-clean maintainer-clean-generic mostlyclean \
1125	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
1126	tags tags-am uninstall uninstall-am uninstall-docDATA
1127
1128.PRECIOUS: Makefile
1129
1130export TAR_OPTIONS
1131
1132list:
1133	@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'
1134
1135install-data-local:
1136	$(MKDIR_P) -m 700 $(DESTDIR)$(workdir)/inputs
1137	$(MKDIR_P) -m 755 $(DESTDIR)$(workdir)/modules
1138	$(MKDIR_P) -m 700 $(DESTDIR)$(workdir)/outputs
1139	$(MKDIR_P) -m 700 $(DESTDIR)$(workdir)/ppkeys
1140	$(MKDIR_P) -m 700 $(DESTDIR)$(workdir)/plugins
1141	$(MKDIR_P) -m 750 $(DESTDIR)$(workdir)/state
1142
1143tar-package:
1144	pkgdir=`mktemp -d`  &&  export pkgdir  &&  \
1145	origdir=`pwd`       &&  export origdir &&  \
1146	$(MAKE) DESTDIR=$$pkgdir install  &&  \
1147	(   cd $$pkgdir  &&  \
1148	    find . -name '*.cf*' | xargs -n1 chmod go-w  &&  \
1149	    tardir=.  &&  \
1150	    $(am__tar) | GZIP=$(GZIP_ENV) gzip -c  \
1151	        > "$$origdir"/$(PACKAGE)-$(VERSION).pkg.tar.gz  \
1152	)  ;  \
1153	[ x$$pkgdir != x ]  &&  rm -rf $$pkgdir
1154
1155#
1156# Code coverage
1157#
1158
1159clean-coverage:
1160	find -L $(srcdir) -name '*.gcda' -delete
1161
1162run-coverage:
1163	-$(MAKE) check -k
1164
1165collect-coverage:
1166	mkdir -p coverage
1167	$(LCOV) $(LCOV_FLAGS) --capture --initial --directory . --output-file coverage/cfengine-lcov-base.info
1168	$(LCOV) $(LCOV_FLAGS) --capture --directory . --output-file coverage/lcov.info --test-name CFENGINE --no-checksum --compat-libtool
1169	$(LCOV) $(LCOV_FLAGS) -a coverage/cfengine-lcov-base.info -a coverage/lcov.info --output-file coverage/cfengine-lcov.info
1170	$(LCOV) $(LCOV_FLAGS) --remove coverage/lcov.info '/usr/include/*' --output-file coverage/lcov.info
1171	LANG=C $(LCOV_GENHTML) $(LCOV_FLAGS) --prefix . --output-directory coverage-html --title "CFEngine Code Coverage" --legend --show-details coverage/lcov.info
1172	@echo
1173	@echo " Code coverage information: file://"`pwd`"/coverage-html/index.html"
1174	@echo " Code coverage summary for IDEs: file://"`pwd`"/coverage/lcov.info"
1175	@echo
1176
1177coverage: clean-coverage run-coverage collect-coverage
1178$(srcdir)/libpromises/enterprise_extension.c: libpromises/extensions_template.c.pre libpromises/enterprise_extension.sed
1179	$(V_SED) $(SED) -f $(srcdir)/libpromises/enterprise_extension.sed $< > $@
1180$(srcdir)/libpromises/enterprise_extension.h: libpromises/extensions_template.h.pre libpromises/enterprise_extension.sed
1181	$(V_SED) $(SED) -f $(srcdir)/libpromises/enterprise_extension.sed $< > $@
1182
1183vm-check:
1184	$(MAKE) -C contrib/vagrant-ci/centos-6-x64/ vm-check
1185
1186vm-check-full:
1187	$(MAKE) -C contrib/vagrant-ci/centos-6-x64/ vm-check-full
1188
1189destroy-vms:
1190	$(MAKE) -C contrib/vagrant-ci/centos-6-x64/ destroy-vms
1191
1192# Tell versions [3.59,3.63) of GNU make to not export all variables.
1193# Otherwise a system limit (for SysV at least) may be exceeded.
1194.NOEXPORT:
1195