"Fossies" - the Fresh Open Source Software Archive 
Member "jq-1.6/Makefile.in" (2 Nov 2018, 66196 Bytes) of package /linux/misc/jq-1.6.tar.gz:
As a special service "Fossies" has tried to format the requested text file into HTML format (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
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
17 ### C source files to be built and distributed.
18
19
20
21
22 VPATH = @srcdir@
23 am__is_gnu_make = { \
24 if test -z '$(MAKELEVEL)'; then \
25 false; \
26 elif test -n '$(MAKE_HOST)'; then \
27 true; \
28 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
29 true; \
30 else \
31 false; \
32 fi; \
33 }
34 am__make_running_with_option = \
35 case $${target_option-} in \
36 ?) ;; \
37 *) echo "am__make_running_with_option: internal error: invalid" \
38 "target option '$${target_option-}' specified" >&2; \
39 exit 1;; \
40 esac; \
41 has_opt=no; \
42 sane_makeflags=$$MAKEFLAGS; \
43 if $(am__is_gnu_make); then \
44 sane_makeflags=$$MFLAGS; \
45 else \
46 case $$MAKEFLAGS in \
47 *\\[\ \ ]*) \
48 bs=\\; \
49 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
50 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
51 esac; \
52 fi; \
53 skip_next=no; \
54 strip_trailopt () \
55 { \
56 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
57 }; \
58 for flg in $$sane_makeflags; do \
59 test $$skip_next = yes && { skip_next=no; continue; }; \
60 case $$flg in \
61 *=*|--*) continue;; \
62 -*I) strip_trailopt 'I'; skip_next=yes;; \
63 -*I?*) strip_trailopt 'I';; \
64 -*O) strip_trailopt 'O'; skip_next=yes;; \
65 -*O?*) strip_trailopt 'O';; \
66 -*l) strip_trailopt 'l'; skip_next=yes;; \
67 -*l?*) strip_trailopt 'l';; \
68 -[dEDm]) skip_next=yes;; \
69 -[JT]) skip_next=yes;; \
70 esac; \
71 case $$flg in \
72 *$$target_option*) has_opt=yes; break;; \
73 esac; \
74 done; \
75 test $$has_opt = yes
76 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
77 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
78 pkgdatadir = $(datadir)/@PACKAGE@
79 pkgincludedir = $(includedir)/@PACKAGE@
80 pkglibdir = $(libdir)/@PACKAGE@
81 pkglibexecdir = $(libexecdir)/@PACKAGE@
82 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
83 install_sh_DATA = $(install_sh) -c -m 644
84 install_sh_PROGRAM = $(install_sh) -c
85 install_sh_SCRIPT = $(install_sh) -c
86 INSTALL_HEADER = $(INSTALL_DATA)
87 transform = $(program_transform_name)
88 NORMAL_INSTALL = :
89 PRE_INSTALL = :
90 POST_INSTALL = :
91 NORMAL_UNINSTALL = :
92 PRE_UNINSTALL = :
93 POST_UNINSTALL = :
94 build_triplet = @build@
95 host_triplet = @host@
96 @WIN32_TRUE@am__append_1 = -lshlwapi
97 @ENABLE_UBSAN_TRUE@am__append_2 = -fsanitize=undefined
98
99 ### Running tests under Valgrind
100 @ENABLE_ASAN_TRUE@am__append_3 = -fsanitize=address
101
102 ### Code coverage with gcov
103 @ENABLE_GCOV_TRUE@am__append_4 = --coverage --no-inline
104
105 ### Error injection for testing
106 @ENABLE_ERROR_INJECTION_TRUE@am__append_5 = libinject_errors.la
107 bin_PROGRAMS = jq$(EXEEXT)
108 @WIN32_TRUE@am__append_6 = -lshlwapi
109 @ENABLE_ALL_STATIC_TRUE@am__append_7 = -all-static
110
111 ### Build oniguruma
112 @BUILD_ONIGURUMA_TRUE@am__append_8 = modules/oniguruma/src/.libs/libonig.la
113 subdir = .
114 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
115 am__aclocal_m4_deps = $(top_srcdir)/config/m4/check-math-func.m4 \
116 $(top_srcdir)/config/m4/find-func-no-libs.m4 \
117 $(top_srcdir)/config/m4/find-func-no-libs2.m4 \
118 $(top_srcdir)/config/m4/find-func.m4 \
119 $(top_srcdir)/config/m4/libtool.m4 \
120 $(top_srcdir)/config/m4/ltoptions.m4 \
121 $(top_srcdir)/config/m4/ltsugar.m4 \
122 $(top_srcdir)/config/m4/ltversion.m4 \
123 $(top_srcdir)/config/m4/lt~obsolete.m4 \
124 $(top_srcdir)/config/m4/misc.m4 \
125 $(top_srcdir)/m4/ax_compare_version.m4 \
126 $(top_srcdir)/m4/ax_prog_bison_version.m4 \
127 $(top_srcdir)/configure.ac
128 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
129 $(ACLOCAL_M4)
130 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
131 $(am__configure_deps) $(dist_doc_DATA) $(include_HEADERS) \
132 $(am__DIST_COMMON)
133 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
134 configure.lineno config.status.lineno
135 mkinstalldirs = $(install_sh) -d
136 CONFIG_CLEAN_FILES =
137 CONFIG_CLEAN_VPATH_FILES =
138 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
139 am__vpath_adj = case $$p in \
140 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
141 *) f=$$p;; \
142 esac;
143 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
144 am__install_max = 40
145 am__nobase_strip_setup = \
146 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
147 am__nobase_strip = \
148 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
149 am__nobase_list = $(am__nobase_strip_setup); \
150 for p in $$list; do echo "$$p $$p"; done | \
151 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
152 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
153 if (++n[$$2] == $(am__install_max)) \
154 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
155 END { for (dir in files) print dir, files[dir] }'
156 am__base_list = \
157 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
158 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
159 am__uninstall_files_from_dir = { \
160 test -z "$$files" \
161 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
162 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
163 $(am__cd) "$$dir" && rm -f $$files; }; \
164 }
165 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \
166 "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(docdir)" \
167 "$(DESTDIR)$(includedir)"
168 LTLIBRARIES = $(lib_LTLIBRARIES)
169 libinject_errors_la_DEPENDENCIES =
170 am__libinject_errors_la_SOURCES_DIST = src/inject_errors.c
171 am__dirstamp = $(am__leading_dot)dirstamp
172 @ENABLE_ERROR_INJECTION_TRUE@am_libinject_errors_la_OBJECTS = \
173 @ENABLE_ERROR_INJECTION_TRUE@ src/inject_errors.lo
174 libinject_errors_la_OBJECTS = $(am_libinject_errors_la_OBJECTS)
175 AM_V_lt = $(am__v_lt_@AM_V@)
176 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
177 am__v_lt_0 = --silent
178 am__v_lt_1 =
179 libinject_errors_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
180 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
181 $(AM_CFLAGS) $(CFLAGS) $(libinject_errors_la_LDFLAGS) \
182 $(LDFLAGS) -o $@
183 @ENABLE_ERROR_INJECTION_TRUE@am_libinject_errors_la_rpath = -rpath \
184 @ENABLE_ERROR_INJECTION_TRUE@ $(libdir)
185 am__DEPENDENCIES_1 =
186 libjq_la_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__append_8)
187 am__objects_1 = src/lexer.lo src/parser.lo
188 am__objects_2 = src/builtin.lo src/bytecode.lo src/compile.lo \
189 src/execute.lo src/jq_test.lo src/jv.lo src/jv_alloc.lo \
190 src/jv_aux.lo src/jv_dtoa.lo src/jv_file.lo src/jv_parse.lo \
191 src/jv_print.lo src/jv_unicode.lo src/linker.lo src/locfile.lo \
192 src/util.lo $(am__objects_1)
193 am_libjq_la_OBJECTS = $(am__objects_2)
194 libjq_la_OBJECTS = $(am_libjq_la_OBJECTS)
195 libjq_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
196 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
197 $(libjq_la_LDFLAGS) $(LDFLAGS) -o $@
198 PROGRAMS = $(bin_PROGRAMS)
199 am_jq_OBJECTS = src/main.$(OBJEXT)
200 jq_OBJECTS = $(am_jq_OBJECTS)
201 jq_DEPENDENCIES = libjq.la $(am__DEPENDENCIES_1)
202 jq_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
203 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
204 $(jq_LDFLAGS) $(LDFLAGS) -o $@
205 AM_V_P = $(am__v_P_@AM_V@)
206 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
207 am__v_P_0 = false
208 am__v_P_1 = :
209 AM_V_GEN = $(am__v_GEN_@AM_V@)
210 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
211 am__v_GEN_0 = @echo " GEN " $@;
212 am__v_GEN_1 =
213 AM_V_at = $(am__v_at_@AM_V@)
214 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
215 am__v_at_0 = @
216 am__v_at_1 =
217 DEFAULT_INCLUDES = -I.@am__isrc@
218 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
219 am__depfiles_maybe = depfiles
220 am__mv = mv -f
221 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
222 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
223 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
224 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
225 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
226 $(AM_CFLAGS) $(CFLAGS)
227 AM_V_CC = $(am__v_CC_@AM_V@)
228 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
229 am__v_CC_0 = @echo " CC " $@;
230 am__v_CC_1 =
231 CCLD = $(CC)
232 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
233 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
234 $(AM_LDFLAGS) $(LDFLAGS) -o $@
235 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
236 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
237 am__v_CCLD_0 = @echo " CCLD " $@;
238 am__v_CCLD_1 =
239 @MAINTAINER_MODE_FALSE@am__skiplex = test -f $@ ||
240 LEXCOMPILE = $(LEX) $(AM_LFLAGS) $(LFLAGS)
241 LTLEXCOMPILE = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) \
242 $(LIBTOOLFLAGS) --mode=compile $(LEX) $(AM_LFLAGS) $(LFLAGS)
243 AM_V_LEX = $(am__v_LEX_@AM_V@)
244 am__v_LEX_ = $(am__v_LEX_@AM_DEFAULT_V@)
245 am__v_LEX_0 = @echo " LEX " $@;
246 am__v_LEX_1 =
247 YLWRAP = $(top_srcdir)/config/ylwrap
248 @MAINTAINER_MODE_FALSE@am__skipyacc = test -f $@ ||
249 am__yacc_c2h = sed -e s/cc$$/hh/ -e s/cpp$$/hpp/ -e s/cxx$$/hxx/ \
250 -e s/c++$$/h++/ -e s/c$$/h/
251 YACCCOMPILE = $(YACC) $(AM_YFLAGS) $(YFLAGS)
252 LTYACCCOMPILE = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) \
253 $(LIBTOOLFLAGS) --mode=compile $(YACC) $(AM_YFLAGS) $(YFLAGS)
254 AM_V_YACC = $(am__v_YACC_@AM_V@)
255 am__v_YACC_ = $(am__v_YACC_@AM_DEFAULT_V@)
256 am__v_YACC_0 = @echo " YACC " $@;
257 am__v_YACC_1 =
258 SOURCES = $(libinject_errors_la_SOURCES) $(libjq_la_SOURCES) \
259 $(jq_SOURCES)
260 DIST_SOURCES = $(am__libinject_errors_la_SOURCES_DIST) \
261 $(libjq_la_SOURCES) $(jq_SOURCES)
262 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
263 ctags-recursive dvi-recursive html-recursive info-recursive \
264 install-data-recursive install-dvi-recursive \
265 install-exec-recursive install-html-recursive \
266 install-info-recursive install-pdf-recursive \
267 install-ps-recursive install-recursive installcheck-recursive \
268 installdirs-recursive pdf-recursive ps-recursive \
269 tags-recursive uninstall-recursive
270 am__can_run_installinfo = \
271 case $$AM_UPDATE_INFO_DIR in \
272 n|no|NO) false;; \
273 *) (install-info --version) >/dev/null 2>&1;; \
274 esac
275 man1dir = $(mandir)/man1
276 NROFF = nroff
277 MANS = $(man_MANS)
278 DATA = $(dist_doc_DATA)
279 HEADERS = $(include_HEADERS)
280 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
281 distclean-recursive maintainer-clean-recursive
282 am__recursive_targets = \
283 $(RECURSIVE_TARGETS) \
284 $(RECURSIVE_CLEAN_TARGETS) \
285 $(am__extra_recursive_targets)
286 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
287 cscope check recheck distdir dist dist-all distcheck
288 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
289 # Read a list of newline-separated strings from the standard input,
290 # and print each of them once, without duplicates. Input order is
291 # *not* preserved.
292 am__uniquify_input = $(AWK) '\
293 BEGIN { nonempty = 0; } \
294 { items[$$0] = 1; nonempty = 1; } \
295 END { if (nonempty) { for (i in items) print i; }; } \
296 '
297 # Make sure the list of sources is unique. This is necessary because,
298 # e.g., the same source file might be shared among _SOURCES variables
299 # for different programs/libraries.
300 am__define_uniq_tagged_files = \
301 list='$(am__tagged_files)'; \
302 unique=`for i in $$list; do \
303 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
304 done | $(am__uniquify_input)`
305 ETAGS = etags
306 CTAGS = ctags
307 CSCOPE = cscope
308 am__tty_colors_dummy = \
309 mgn= red= grn= lgn= blu= brg= std=; \
310 am__color_tests=no
311 am__tty_colors = { \
312 $(am__tty_colors_dummy); \
313 if test "X$(AM_COLOR_TESTS)" = Xno; then \
314 am__color_tests=no; \
315 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
316 am__color_tests=yes; \
317 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
318 am__color_tests=yes; \
319 fi; \
320 if test $$am__color_tests = yes; then \
321 red='[0;31m'; \
322 grn='[0;32m'; \
323 lgn='[1;32m'; \
324 blu='[1;34m'; \
325 mgn='[0;35m'; \
326 brg='[1m'; \
327 std='[m'; \
328 fi; \
329 }
330 am__recheck_rx = ^[ ]*:recheck:[ ]*
331 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
332 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
333 # A command that, given a newline-separated list of test names on the
334 # standard input, print the name of the tests that are to be re-run
335 # upon "make recheck".
336 am__list_recheck_tests = $(AWK) '{ \
337 recheck = 1; \
338 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
339 { \
340 if (rc < 0) \
341 { \
342 if ((getline line2 < ($$0 ".log")) < 0) \
343 recheck = 0; \
344 break; \
345 } \
346 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
347 { \
348 recheck = 0; \
349 break; \
350 } \
351 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
352 { \
353 break; \
354 } \
355 }; \
356 if (recheck) \
357 print $$0; \
358 close ($$0 ".trs"); \
359 close ($$0 ".log"); \
360 }'
361 # A command that, given a newline-separated list of test names on the
362 # standard input, create the global log from their .trs and .log files.
363 am__create_global_log = $(AWK) ' \
364 function fatal(msg) \
365 { \
366 print "fatal: making $@: " msg | "cat >&2"; \
367 exit 1; \
368 } \
369 function rst_section(header) \
370 { \
371 print header; \
372 len = length(header); \
373 for (i = 1; i <= len; i = i + 1) \
374 printf "="; \
375 printf "\n\n"; \
376 } \
377 { \
378 copy_in_global_log = 1; \
379 global_test_result = "RUN"; \
380 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
381 { \
382 if (rc < 0) \
383 fatal("failed to read from " $$0 ".trs"); \
384 if (line ~ /$(am__global_test_result_rx)/) \
385 { \
386 sub("$(am__global_test_result_rx)", "", line); \
387 sub("[ ]*$$", "", line); \
388 global_test_result = line; \
389 } \
390 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
391 copy_in_global_log = 0; \
392 }; \
393 if (copy_in_global_log) \
394 { \
395 rst_section(global_test_result ": " $$0); \
396 while ((rc = (getline line < ($$0 ".log"))) != 0) \
397 { \
398 if (rc < 0) \
399 fatal("failed to read from " $$0 ".log"); \
400 print line; \
401 }; \
402 printf "\n"; \
403 }; \
404 close ($$0 ".trs"); \
405 close ($$0 ".log"); \
406 }'
407 # Restructured Text title.
408 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
409 # Solaris 10 'make', and several other traditional 'make' implementations,
410 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
411 # by disabling -e (using the XSI extension "set +e") if it's set.
412 am__sh_e_setup = case $$- in *e*) set +e;; esac
413 # Default flags passed to test drivers.
414 am__common_driver_flags = \
415 --color-tests "$$am__color_tests" \
416 --enable-hard-errors "$$am__enable_hard_errors" \
417 --expect-failure "$$am__expect_failure"
418 # To be inserted before the command running the test. Creates the
419 # directory for the log if needed. Stores in $dir the directory
420 # containing $f, in $tst the test, in $log the log. Executes the
421 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
422 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
423 # will run the test scripts (or their associated LOG_COMPILER, if
424 # thy have one).
425 am__check_pre = \
426 $(am__sh_e_setup); \
427 $(am__vpath_adj_setup) $(am__vpath_adj) \
428 $(am__tty_colors); \
429 srcdir=$(srcdir); export srcdir; \
430 case "$@" in \
431 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
432 *) am__odir=.;; \
433 esac; \
434 test "x$$am__odir" = x"." || test -d "$$am__odir" \
435 || $(MKDIR_P) "$$am__odir" || exit $$?; \
436 if test -f "./$$f"; then dir=./; \
437 elif test -f "$$f"; then dir=; \
438 else dir="$(srcdir)/"; fi; \
439 tst=$$dir$$f; log='$@'; \
440 if test -n '$(DISABLE_HARD_ERRORS)'; then \
441 am__enable_hard_errors=no; \
442 else \
443 am__enable_hard_errors=yes; \
444 fi; \
445 case " $(XFAIL_TESTS) " in \
446 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
447 am__expect_failure=yes;; \
448 *) \
449 am__expect_failure=no;; \
450 esac; \
451 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
452 # A shell command to get the names of the tests scripts with any registered
453 # extension removed (i.e., equivalently, the names of the test logs, with
454 # the '.log' extension removed). The result is saved in the shell variable
455 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
456 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
457 # since that might cause problem with VPATH rewrites for suffix-less tests.
458 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
459 am__set_TESTS_bases = \
460 bases='$(TEST_LOGS)'; \
461 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
462 bases=`echo $$bases`
463 RECHECK_LOGS = $(TEST_LOGS)
464 TEST_SUITE_LOG = test-suite.log
465 TEST_EXTENSIONS = @EXEEXT@ .test
466 LOG_DRIVER = $(SHELL) $(top_srcdir)/config/test-driver
467 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
468 am__set_b = \
469 case '$@' in \
470 */*) \
471 case '$*' in \
472 */*) b='$*';; \
473 *) b=`echo '$@' | sed 's/\.log$$//'`; \
474 esac;; \
475 *) \
476 b='$*';; \
477 esac
478 am__test_logs1 = $(TESTS:=.log)
479 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
480 TEST_LOGS = $(am__test_logs2:.test.log=.log)
481 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/config/test-driver
482 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
483 $(TEST_LOG_FLAGS)
484 DIST_SUBDIRS = modules/oniguruma
485 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/config/ar-lib \
486 $(top_srcdir)/config/compile $(top_srcdir)/config/config.guess \
487 $(top_srcdir)/config/config.sub $(top_srcdir)/config/depcomp \
488 $(top_srcdir)/config/install-sh $(top_srcdir)/config/ltmain.sh \
489 $(top_srcdir)/config/missing $(top_srcdir)/config/test-driver \
490 $(top_srcdir)/config/ylwrap AUTHORS COPYING ChangeLog NEWS \
491 README config/ar-lib config/compile config/config.guess \
492 config/config.sub config/depcomp config/install-sh \
493 config/ltmain.sh config/missing config/ylwrap src/lexer.c \
494 src/parser.c src/parser.h
495 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
496 distdir = $(PACKAGE)-$(VERSION)
497 top_distdir = $(distdir)
498 am__remove_distdir = \
499 if test -d "$(distdir)"; then \
500 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
501 && rm -rf "$(distdir)" \
502 || { sleep 5 && rm -rf "$(distdir)"; }; \
503 else :; fi
504 am__post_remove_distdir = $(am__remove_distdir)
505 am__relativize = \
506 dir0=`pwd`; \
507 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
508 sed_rest='s,^[^/]*/*,,'; \
509 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
510 sed_butlast='s,/*[^/]*$$,,'; \
511 while test -n "$$dir1"; do \
512 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
513 if test "$$first" != "."; then \
514 if test "$$first" = ".."; then \
515 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
516 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
517 else \
518 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
519 if test "$$first2" = "$$first"; then \
520 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
521 else \
522 dir2="../$$dir2"; \
523 fi; \
524 dir0="$$dir0"/"$$first"; \
525 fi; \
526 fi; \
527 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
528 done; \
529 reldir="$$dir2"
530 DIST_ARCHIVES = $(distdir).tar.gz
531 GZIP_ENV = --best
532 DIST_TARGETS = dist-gzip
533 distuninstallcheck_listfiles = find . -type f -print
534 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
535 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
536 distcleancheck_listfiles = find . -type f -print
537 ACLOCAL = @ACLOCAL@
538 ALLOCA = @ALLOCA@
539 AMTAR = @AMTAR@
540 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
541 AR = @AR@
542 AS = @AS@
543 AUTOCONF = @AUTOCONF@
544 AUTOHEADER = @AUTOHEADER@
545 AUTOMAKE = @AUTOMAKE@
546 AWK = @AWK@
547 BISON_VERSION = @BISON_VERSION@
548 BUNDLER = @BUNDLER@
549 CC = @CC@
550 CCDEPMODE = @CCDEPMODE@
551 CFLAGS = @CFLAGS@
552 CPP = @CPP@
553 CPPFLAGS = @CPPFLAGS@
554 CYGPATH_W = @CYGPATH_W@
555 DEFS = @DEFS@
556 DEPDIR = @DEPDIR@
557 DLLTOOL = @DLLTOOL@
558 DSYMUTIL = @DSYMUTIL@
559 DUMPBIN = @DUMPBIN@
560 ECHO_C = @ECHO_C@
561 ECHO_N = @ECHO_N@
562 ECHO_T = @ECHO_T@
563 EGREP = @EGREP@
564 EXEEXT = @EXEEXT@
565 FGREP = @FGREP@
566 GREP = @GREP@
567 INSTALL = @INSTALL@
568 INSTALL_DATA = @INSTALL_DATA@
569 INSTALL_PROGRAM = @INSTALL_PROGRAM@
570 INSTALL_SCRIPT = @INSTALL_SCRIPT@
571 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
572 LD = @LD@
573 LDFLAGS = @LDFLAGS@
574 LEX = @LEX@
575 LIBOBJS = @LIBOBJS@
576 LIBS = @LIBS@
577 LIBTOOL = @LIBTOOL@
578 LIB__isatty = @LIB__isatty@
579 LIB_atexit = @LIB_atexit@
580 LIB_gettimeofday = @LIB_gettimeofday@
581 LIB_gmtime = @LIB_gmtime@
582 LIB_gmtime_r = @LIB_gmtime_r@
583 LIB_isatty = @LIB_isatty@
584 LIB_localtime = @LIB_localtime@
585 LIB_localtime_r = @LIB_localtime_r@
586 LIB_pthread_key_create = @LIB_pthread_key_create@
587 LIB_pthread_once = @LIB_pthread_once@
588 LIB_strftime = @LIB_strftime@
589 LIB_strptime = @LIB_strptime@
590 LIB_timegm = @LIB_timegm@
591 LIPO = @LIPO@
592 LN_S = @LN_S@
593 LTLIBOBJS = @LTLIBOBJS@
594 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
595 MAINT = @MAINT@
596 MAKEINFO = @MAKEINFO@
597 MANIFEST_TOOL = @MANIFEST_TOOL@
598 MKDIR_P = @MKDIR_P@
599 NM = @NM@
600 NMEDIT = @NMEDIT@
601 OBJDUMP = @OBJDUMP@
602 OBJEXT = @OBJEXT@
603 OTOOL = @OTOOL@
604 OTOOL64 = @OTOOL64@
605 PACKAGE = @PACKAGE@
606 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
607 PACKAGE_NAME = @PACKAGE_NAME@
608 PACKAGE_STRING = @PACKAGE_STRING@
609 PACKAGE_TARNAME = @PACKAGE_TARNAME@
610 PACKAGE_URL = @PACKAGE_URL@
611 PACKAGE_VERSION = @PACKAGE_VERSION@
612 PATH_SEPARATOR = @PATH_SEPARATOR@
613 RANLIB = @RANLIB@
614 SED = @SED@
615 SET_MAKE = @SET_MAKE@
616 SHELL = @SHELL@
617 STRIP = @STRIP@
618 VERSION = @VERSION@
619 YACC = @YACC@
620 YFLAGS = @YFLAGS@
621 abs_builddir = @abs_builddir@
622 abs_srcdir = @abs_srcdir@
623 abs_top_builddir = @abs_top_builddir@
624 abs_top_srcdir = @abs_top_srcdir@
625 ac_ct_AR = @ac_ct_AR@
626 ac_ct_CC = @ac_ct_CC@
627 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
628 am__include = @am__include@
629 am__leading_dot = @am__leading_dot@
630 am__quote = @am__quote@
631 am__tar = @am__tar@
632 am__untar = @am__untar@
633 bindir = @bindir@
634 build = @build@
635 build_alias = @build_alias@
636 build_cpu = @build_cpu@
637 build_os = @build_os@
638 build_vendor = @build_vendor@
639 builddir = @builddir@
640 bundle_cmd = @bundle_cmd@
641 datadir = @datadir@
642 datarootdir = @datarootdir@
643
644 # README.md is expected in Github projects, good stuff in it, so we'll
645 # distribute it and install it with the package in the doc directory.
646 docdir = ${datadir}/doc/${PACKAGE}
647 dvidir = @dvidir@
648 exec_prefix = @exec_prefix@
649 host = @host@
650 host_alias = @host_alias@
651 host_cpu = @host_cpu@
652 host_os = @host_os@
653 host_vendor = @host_vendor@
654 htmldir = @htmldir@
655 includedir = @includedir@
656 infodir = @infodir@
657 install_sh = @install_sh@
658 libdir = @libdir@
659 libexecdir = @libexecdir@
660 localedir = @localedir@
661 localstatedir = @localstatedir@
662 mandir = @mandir@
663 mkdir_p = @mkdir_p@
664 oldincludedir = @oldincludedir@
665 onig_CFLAGS = @onig_CFLAGS@
666 onig_LDFLAGS = @onig_LDFLAGS@
667 pdfdir = @pdfdir@
668 prefix = @prefix@
669 program_transform_name = @program_transform_name@
670 psdir = @psdir@
671 sbindir = @sbindir@
672 sharedstatedir = @sharedstatedir@
673 srcdir = @srcdir@
674 subdirs = @subdirs@
675 sysconfdir = @sysconfdir@
676 target_alias = @target_alias@
677 top_build_prefix = @top_build_prefix@
678 top_builddir = @top_builddir@
679 top_srcdir = @top_srcdir@
680 valgrind_cmd = @valgrind_cmd@
681 LIBJQ_INCS = src/builtin.h src/bytecode.h src/compile.h \
682 src/exec_stack.h src/jq_parser.h src/jv_alloc.h src/jv_dtoa.h \
683 src/jv_unicode.h src/jv_utf8_tables.h src/lexer.l src/libm.h \
684 src/linker.h src/locfile.h src/opcode_list.h src/parser.y \
685 src/util.h
686
687 LIBJQ_SRC = src/builtin.c src/bytecode.c src/compile.c src/execute.c \
688 src/jq_test.c src/jv.c src/jv_alloc.c src/jv_aux.c \
689 src/jv_dtoa.c src/jv_file.c src/jv_parse.c src/jv_print.c \
690 src/jv_unicode.c src/linker.c src/locfile.c src/util.c \
691 ${LIBJQ_INCS}
692
693
694 ### C build options
695 AM_CFLAGS = -Wextra -Wall -Wno-missing-field-initializers \
696 -Wno-unused-parameter -Wno-unused-function $(am__append_2) \
697 $(am__append_3) $(am__append_4) $(onig_CFLAGS)
698 ACLOCAL_AMFLAGS = -I config/m4
699 @MAINTAINER_MODE_FALSE@BUILT_SOURCES = src/builtin.inc src/version.h
700
701 ### Generating the lexer and parser
702
703 # While there is some autoconf macro support for lex/flex, it doesn't support
704 # header file creation so we'll use good old make
705 @MAINTAINER_MODE_TRUE@BUILT_SOURCES = src/lexer.h src/lexer.c src/parser.h src/parser.c \
706 @MAINTAINER_MODE_TRUE@ src/builtin.inc src/version.h
707
708
709 # Tell YACC (bison) autoconf macros that you want a header file created.
710 # If the --warnings=all fails, you probably have an old version of bison
711 # OSX ships an old bison, so update with homebrew or macports
712 AM_YFLAGS = --warnings=all -d
713
714 ### libjq
715 lib_LTLIBRARIES = libjq.la $(am__append_5)
716 libjq_la_SOURCES = ${LIBJQ_SRC}
717 libjq_la_LIBADD = -lm $(am__append_1) $(am__append_8)
718 libjq_la_LDFLAGS = $(onig_LDFLAGS) -export-symbols-regex '^j[qv]_' -version-info 1:4:0
719 include_HEADERS = src/jv.h src/jq.h
720 @ENABLE_ASAN_FALSE@@ENABLE_VALGRIND_FALSE@NO_VALGRIND = 1
721 @ENABLE_ASAN_FALSE@@ENABLE_VALGRIND_TRUE@NO_VALGRIND =
722 @ENABLE_ASAN_TRUE@NO_VALGRIND = 1
723 @ENABLE_ERROR_INJECTION_TRUE@libinject_errors_la_SOURCES = src/inject_errors.c
724 @ENABLE_ERROR_INJECTION_TRUE@libinject_errors_la_LIBADD = -ldl
725 @ENABLE_ERROR_INJECTION_TRUE@libinject_errors_la_LDFLAGS = -module
726 generate_ver = ver="`{ $(srcdir)/scripts/version || echo '$(VERSION)' ; } | sed 's/.*/\#define JQ_VERSION \"&\"/'`"
727 jq_SOURCES = src/main.c src/version.h
728 jq_LDFLAGS = -static-libtool-libs $(am__append_7)
729 jq_LDADD = libjq.la -lm $(am__append_6)
730
731 ### Tests (make check)
732 TESTS = tests/optionaltest tests/mantest tests/jqtest tests/onigtest tests/shtest tests/utf8test tests/base64test
733 TESTS_ENVIRONMENT = NO_VALGRIND=$(NO_VALGRIND)
734
735 ### Building the manpage
736 man_MANS = jq.1
737 @BUILD_ONIGURUMA_TRUE@SUBDIRS = modules/oniguruma
738 DOC_FILES = docs/content docs/public docs/templates docs/site.yml \
739 docs/Gemfile docs/Gemfile.lock docs/Rakefile docs/README.md \
740 jq.1.prebuilt
741
742 EXTRA_DIST = $(DOC_FILES) $(man_MANS) $(TESTS) $(TEST_LOG_COMPILER) \
743 jq.1.prebuilt jq.spec src/lexer.c src/lexer.h src/parser.c \
744 src/parser.h src/version.h src/builtin.jq \
745 scripts/version tests/jq.test tests/modules/.jq \
746 tests/modules/a.jq tests/modules/b/b.jq tests/modules/c/c.jq \
747 tests/modules/c/d.jq tests/modules/data.json \
748 tests/modules/lib/jq/e/e.jq tests/modules/lib/jq/f.jq \
749 tests/modules/syntaxerror/syntaxerror.jq \
750 tests/modules/test_bind_order.jq \
751 tests/modules/test_bind_order0.jq \
752 tests/modules/test_bind_order1.jq \
753 tests/modules/test_bind_order2.jq tests/onig.supp \
754 tests/onig.test tests/setup tests/torture/input0.json \
755 tests/optional.test tests/optionaltest \
756 tests/utf8-truncate.jq tests/utf8test \
757 tests/base64.test tests/base64test \
758 tests/jq-f-test.sh tests/shtest
759
760 dist_doc_DATA = README.md COPYING AUTHORS README
761 all: $(BUILT_SOURCES)
762 $(MAKE) $(AM_MAKEFLAGS) all-recursive
763
764 .SUFFIXES:
765 .SUFFIXES: .c .l .lo .log .o .obj .test .test$(EXEEXT) .trs .y
766 am--refresh: Makefile
767 @:
768 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
769 @for dep in $?; do \
770 case '$(am__configure_deps)' in \
771 *$$dep*) \
772 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
773 $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
774 && exit 0; \
775 exit 1;; \
776 esac; \
777 done; \
778 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
779 $(am__cd) $(top_srcdir) && \
780 $(AUTOMAKE) --foreign Makefile
781 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
782 @case '$?' in \
783 *config.status*) \
784 echo ' $(SHELL) ./config.status'; \
785 $(SHELL) ./config.status;; \
786 *) \
787 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
788 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
789 esac;
790
791 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
792 $(SHELL) ./config.status --recheck
793
794 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
795 $(am__cd) $(srcdir) && $(AUTOCONF)
796 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
797 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
798 $(am__aclocal_m4_deps):
799
800 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
801 @$(NORMAL_INSTALL)
802 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
803 list2=; for p in $$list; do \
804 if test -f $$p; then \
805 list2="$$list2 $$p"; \
806 else :; fi; \
807 done; \
808 test -z "$$list2" || { \
809 echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
810 $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
811 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
812 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
813 }
814
815 uninstall-libLTLIBRARIES:
816 @$(NORMAL_UNINSTALL)
817 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
818 for p in $$list; do \
819 $(am__strip_dir) \
820 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
821 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
822 done
823
824 clean-libLTLIBRARIES:
825 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
826 @list='$(lib_LTLIBRARIES)'; \
827 locs=`for p in $$list; do echo $$p; done | \
828 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
829 sort -u`; \
830 test -z "$$locs" || { \
831 echo rm -f $${locs}; \
832 rm -f $${locs}; \
833 }
834 src/$(am__dirstamp):
835 @$(MKDIR_P) src
836 @: > src/$(am__dirstamp)
837 src/$(DEPDIR)/$(am__dirstamp):
838 @$(MKDIR_P) src/$(DEPDIR)
839 @: > src/$(DEPDIR)/$(am__dirstamp)
840 src/inject_errors.lo: src/$(am__dirstamp) \
841 src/$(DEPDIR)/$(am__dirstamp)
842
843 libinject_errors.la: $(libinject_errors_la_OBJECTS) $(libinject_errors_la_DEPENDENCIES) $(EXTRA_libinject_errors_la_DEPENDENCIES)
844 $(AM_V_CCLD)$(libinject_errors_la_LINK) $(am_libinject_errors_la_rpath) $(libinject_errors_la_OBJECTS) $(libinject_errors_la_LIBADD) $(LIBS)
845 src/builtin.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
846 src/bytecode.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
847 src/compile.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
848 src/execute.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
849 src/jq_test.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
850 src/jv.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
851 src/jv_alloc.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
852 src/jv_aux.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
853 src/jv_dtoa.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
854 src/jv_file.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
855 src/jv_parse.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
856 src/jv_print.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
857 src/jv_unicode.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
858 src/linker.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
859 src/locfile.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
860 src/util.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
861 src/lexer.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
862 src/parser.h: src/parser.c
863 @if test ! -f $@; then rm -f src/parser.c; else :; fi
864 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) src/parser.c; else :; fi
865 src/parser.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
866
867 libjq.la: $(libjq_la_OBJECTS) $(libjq_la_DEPENDENCIES) $(EXTRA_libjq_la_DEPENDENCIES)
868 $(AM_V_CCLD)$(libjq_la_LINK) -rpath $(libdir) $(libjq_la_OBJECTS) $(libjq_la_LIBADD) $(LIBS)
869 install-binPROGRAMS: $(bin_PROGRAMS)
870 @$(NORMAL_INSTALL)
871 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
872 if test -n "$$list"; then \
873 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
874 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
875 fi; \
876 for p in $$list; do echo "$$p $$p"; done | \
877 sed 's/$(EXEEXT)$$//' | \
878 while read p p1; do if test -f $$p \
879 || test -f $$p1 \
880 ; then echo "$$p"; echo "$$p"; else :; fi; \
881 done | \
882 sed -e 'p;s,.*/,,;n;h' \
883 -e 's|.*|.|' \
884 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
885 sed 'N;N;N;s,\n, ,g' | \
886 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
887 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
888 if ($$2 == $$4) files[d] = files[d] " " $$1; \
889 else { print "f", $$3 "/" $$4, $$1; } } \
890 END { for (d in files) print "f", d, files[d] }' | \
891 while read type dir files; do \
892 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
893 test -z "$$files" || { \
894 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
895 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
896 } \
897 ; done
898
899 uninstall-binPROGRAMS:
900 @$(NORMAL_UNINSTALL)
901 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
902 files=`for p in $$list; do echo "$$p"; done | \
903 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
904 -e 's/$$/$(EXEEXT)/' \
905 `; \
906 test -n "$$list" || exit 0; \
907 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
908 cd "$(DESTDIR)$(bindir)" && rm -f $$files
909
910 clean-binPROGRAMS:
911 @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
912 echo " rm -f" $$list; \
913 rm -f $$list || exit $$?; \
914 test -n "$(EXEEXT)" || exit 0; \
915 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
916 echo " rm -f" $$list; \
917 rm -f $$list
918 src/main.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
919
920 jq$(EXEEXT): $(jq_OBJECTS) $(jq_DEPENDENCIES) $(EXTRA_jq_DEPENDENCIES)
921 @rm -f jq$(EXEEXT)
922 $(AM_V_CCLD)$(jq_LINK) $(jq_OBJECTS) $(jq_LDADD) $(LIBS)
923
924 mostlyclean-compile:
925 -rm -f *.$(OBJEXT)
926 -rm -f src/*.$(OBJEXT)
927 -rm -f src/*.lo
928
929 distclean-compile:
930 -rm -f *.tab.c
931
932 @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/builtin.Plo@am__quote@
933 @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/bytecode.Plo@am__quote@
934 @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/compile.Plo@am__quote@
935 @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/execute.Plo@am__quote@
936 @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/inject_errors.Plo@am__quote@
937 @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/jq_test.Plo@am__quote@
938 @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/jv.Plo@am__quote@
939 @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/jv_alloc.Plo@am__quote@
940 @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/jv_aux.Plo@am__quote@
941 @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/jv_dtoa.Plo@am__quote@
942 @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/jv_file.Plo@am__quote@
943 @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/jv_parse.Plo@am__quote@
944 @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/jv_print.Plo@am__quote@
945 @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/jv_unicode.Plo@am__quote@
946 @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/lexer.Plo@am__quote@
947 @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/linker.Plo@am__quote@
948 @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/locfile.Plo@am__quote@
949 @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/main.Po@am__quote@
950 @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/parser.Plo@am__quote@
951 @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/util.Plo@am__quote@
952
953 .c.o:
954 @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
955 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
956 @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
957 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
958 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
959 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
960
961 .c.obj:
962 @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
963 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
964 @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
965 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
966 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
967 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
968
969 .c.lo:
970 @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
971 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
972 @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
973 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
974 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
975 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
976
977 @MAINTAINER_MODE_TRUE@.l.c:
978 @MAINTAINER_MODE_TRUE@ $(AM_V_LEX)$(am__skiplex) $(SHELL) $(YLWRAP) $< $(LEX_OUTPUT_ROOT).c $@ -- $(LEXCOMPILE)
979
980 @MAINTAINER_MODE_TRUE@.y.c:
981 @MAINTAINER_MODE_TRUE@ $(AM_V_YACC)$(am__skipyacc) $(SHELL) $(YLWRAP) $< y.tab.c $@ y.tab.h `echo $@ | $(am__yacc_c2h)` y.output $*.output -- $(YACCCOMPILE)
982
983 mostlyclean-libtool:
984 -rm -f *.lo
985
986 clean-libtool:
987 -rm -rf .libs _libs
988 -rm -rf src/.libs src/_libs
989
990 distclean-libtool:
991 -rm -f libtool config.lt
992 install-man1: $(man_MANS)
993 @$(NORMAL_INSTALL)
994 @list1=''; \
995 list2='$(man_MANS)'; \
996 test -n "$(man1dir)" \
997 && test -n "`echo $$list1$$list2`" \
998 || exit 0; \
999 echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
1000 $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
1001 { for i in $$list1; do echo "$$i"; done; \
1002 if test -n "$$list2"; then \
1003 for i in $$list2; do echo "$$i"; done \
1004 | sed -n '/\.1[a-z]*$$/p'; \
1005 fi; \
1006 } | while read p; do \
1007 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
1008 echo "$$d$$p"; echo "$$p"; \
1009 done | \
1010 sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
1011 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
1012 sed 'N;N;s,\n, ,g' | { \
1013 list=; while read file base inst; do \
1014 if test "$$base" = "$$inst"; then list="$$list $$file"; else \
1015 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
1016 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
1017 fi; \
1018 done; \
1019 for i in $$list; do echo "$$i"; done | $(am__base_list) | \
1020 while read files; do \
1021 test -z "$$files" || { \
1022 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
1023 $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
1024 done; }
1025
1026 uninstall-man1:
1027 @$(NORMAL_UNINSTALL)
1028 @list=''; test -n "$(man1dir)" || exit 0; \
1029 files=`{ for i in $$list; do echo "$$i"; done; \
1030 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
1031 sed -n '/\.1[a-z]*$$/p'; \
1032 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
1033 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
1034 dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
1035 install-dist_docDATA: $(dist_doc_DATA)
1036 @$(NORMAL_INSTALL)
1037 @list='$(dist_doc_DATA)'; test -n "$(docdir)" || list=; \
1038 if test -n "$$list"; then \
1039 echo " $(MKDIR_P) '$(DESTDIR)$(docdir)'"; \
1040 $(MKDIR_P) "$(DESTDIR)$(docdir)" || exit 1; \
1041 fi; \
1042 for p in $$list; do \
1043 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1044 echo "$$d$$p"; \
1045 done | $(am__base_list) | \
1046 while read files; do \
1047 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(docdir)'"; \
1048 $(INSTALL_DATA) $$files "$(DESTDIR)$(docdir)" || exit $$?; \
1049 done
1050
1051 uninstall-dist_docDATA:
1052 @$(NORMAL_UNINSTALL)
1053 @list='$(dist_doc_DATA)'; test -n "$(docdir)" || list=; \
1054 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
1055 dir='$(DESTDIR)$(docdir)'; $(am__uninstall_files_from_dir)
1056 install-includeHEADERS: $(include_HEADERS)
1057 @$(NORMAL_INSTALL)
1058 @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
1059 if test -n "$$list"; then \
1060 echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \
1061 $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \
1062 fi; \
1063 for p in $$list; do \
1064 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1065 echo "$$d$$p"; \
1066 done | $(am__base_list) | \
1067 while read files; do \
1068 echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
1069 $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
1070 done
1071
1072 uninstall-includeHEADERS:
1073 @$(NORMAL_UNINSTALL)
1074 @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
1075 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
1076 dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir)
1077
1078 # This directory's subdirectories are mostly independent; you can cd
1079 # into them and run 'make' without going through this Makefile.
1080 # To change the values of 'make' variables: instead of editing Makefiles,
1081 # (1) if the variable is set in 'config.status', edit 'config.status'
1082 # (which will cause the Makefiles to be regenerated when you run 'make');
1083 # (2) otherwise, pass the desired values on the 'make' command line.
1084 $(am__recursive_targets):
1085 @fail=; \
1086 if $(am__make_keepgoing); then \
1087 failcom='fail=yes'; \
1088 else \
1089 failcom='exit 1'; \
1090 fi; \
1091 dot_seen=no; \
1092 target=`echo $@ | sed s/-recursive//`; \
1093 case "$@" in \
1094 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
1095 *) list='$(SUBDIRS)' ;; \
1096 esac; \
1097 for subdir in $$list; do \
1098 echo "Making $$target in $$subdir"; \
1099 if test "$$subdir" = "."; then \
1100 dot_seen=yes; \
1101 local_target="$$target-am"; \
1102 else \
1103 local_target="$$target"; \
1104 fi; \
1105 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
1106 || eval $$failcom; \
1107 done; \
1108 if test "$$dot_seen" = "no"; then \
1109 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
1110 fi; test -z "$$fail"
1111
1112 ID: $(am__tagged_files)
1113 $(am__define_uniq_tagged_files); mkid -fID $$unique
1114 tags: tags-recursive
1115 TAGS: tags
1116
1117 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
1118 set x; \
1119 here=`pwd`; \
1120 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
1121 include_option=--etags-include; \
1122 empty_fix=.; \
1123 else \
1124 include_option=--include; \
1125 empty_fix=; \
1126 fi; \
1127 list='$(SUBDIRS)'; for subdir in $$list; do \
1128 if test "$$subdir" = .; then :; else \
1129 test ! -f $$subdir/TAGS || \
1130 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
1131 fi; \
1132 done; \
1133 $(am__define_uniq_tagged_files); \
1134 shift; \
1135 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
1136 test -n "$$unique" || unique=$$empty_fix; \
1137 if test $$# -gt 0; then \
1138 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
1139 "$$@" $$unique; \
1140 else \
1141 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
1142 $$unique; \
1143 fi; \
1144 fi
1145 ctags: ctags-recursive
1146
1147 CTAGS: ctags
1148 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
1149 $(am__define_uniq_tagged_files); \
1150 test -z "$(CTAGS_ARGS)$$unique" \
1151 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
1152 $$unique
1153
1154 GTAGS:
1155 here=`$(am__cd) $(top_builddir) && pwd` \
1156 && $(am__cd) $(top_srcdir) \
1157 && gtags -i $(GTAGS_ARGS) "$$here"
1158 cscope: cscope.files
1159 test ! -s cscope.files \
1160 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
1161 clean-cscope:
1162 -rm -f cscope.files
1163 cscope.files: clean-cscope cscopelist
1164 cscopelist: cscopelist-recursive
1165
1166 cscopelist-am: $(am__tagged_files)
1167 list='$(am__tagged_files)'; \
1168 case "$(srcdir)" in \
1169 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
1170 *) sdir=$(subdir)/$(srcdir) ;; \
1171 esac; \
1172 for i in $$list; do \
1173 if test -f "$$i"; then \
1174 echo "$(subdir)/$$i"; \
1175 else \
1176 echo "$$sdir/$$i"; \
1177 fi; \
1178 done >> $(top_builddir)/cscope.files
1179
1180 distclean-tags:
1181 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
1182 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
1183
1184 # Recover from deleted '.trs' file; this should ensure that
1185 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
1186 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
1187 # to avoid problems with "make -n".
1188 .log.trs:
1189 rm -f $< $@
1190 $(MAKE) $(AM_MAKEFLAGS) $<
1191
1192 # Leading 'am--fnord' is there to ensure the list of targets does not
1193 # expand to empty, as could happen e.g. with make check TESTS=''.
1194 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
1195 am--force-recheck:
1196 @:
1197
1198 $(TEST_SUITE_LOG): $(TEST_LOGS)
1199 @$(am__set_TESTS_bases); \
1200 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
1201 redo_bases=`for i in $$bases; do \
1202 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
1203 done`; \
1204 if test -n "$$redo_bases"; then \
1205 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
1206 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
1207 if $(am__make_dryrun); then :; else \
1208 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
1209 fi; \
1210 fi; \
1211 if test -n "$$am__remaking_logs"; then \
1212 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
1213 "recursion detected" >&2; \
1214 elif test -n "$$redo_logs"; then \
1215 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
1216 fi; \
1217 if $(am__make_dryrun); then :; else \
1218 st=0; \
1219 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
1220 for i in $$redo_bases; do \
1221 test -f $$i.trs && test -r $$i.trs \
1222 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
1223 test -f $$i.log && test -r $$i.log \
1224 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
1225 done; \
1226 test $$st -eq 0 || exit 1; \
1227 fi
1228 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
1229 ws='[ ]'; \
1230 results=`for b in $$bases; do echo $$b.trs; done`; \
1231 test -n "$$results" || results=/dev/null; \
1232 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
1233 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
1234 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
1235 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
1236 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
1237 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
1238 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
1239 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
1240 success=true; \
1241 else \
1242 success=false; \
1243 fi; \
1244 br='==================='; br=$$br$$br$$br$$br; \
1245 result_count () \
1246 { \
1247 if test x"$$1" = x"--maybe-color"; then \
1248 maybe_colorize=yes; \
1249 elif test x"$$1" = x"--no-color"; then \
1250 maybe_colorize=no; \
1251 else \
1252 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
1253 fi; \
1254 shift; \
1255 desc=$$1 count=$$2; \
1256 if test $$maybe_colorize = yes && test $$count -gt 0; then \
1257 color_start=$$3 color_end=$$std; \
1258 else \
1259 color_start= color_end=; \
1260 fi; \
1261 echo "$${color_start}# $$desc $$count$${color_end}"; \
1262 }; \
1263 create_testsuite_report () \
1264 { \
1265 result_count $$1 "TOTAL:" $$all "$$brg"; \
1266 result_count $$1 "PASS: " $$pass "$$grn"; \
1267 result_count $$1 "SKIP: " $$skip "$$blu"; \
1268 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
1269 result_count $$1 "FAIL: " $$fail "$$red"; \
1270 result_count $$1 "XPASS:" $$xpass "$$red"; \
1271 result_count $$1 "ERROR:" $$error "$$mgn"; \
1272 }; \
1273 { \
1274 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
1275 $(am__rst_title); \
1276 create_testsuite_report --no-color; \
1277 echo; \
1278 echo ".. contents:: :depth: 2"; \
1279 echo; \
1280 for b in $$bases; do echo $$b; done \
1281 | $(am__create_global_log); \
1282 } >$(TEST_SUITE_LOG).tmp || exit 1; \
1283 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
1284 if $$success; then \
1285 col="$$grn"; \
1286 else \
1287 col="$$red"; \
1288 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
1289 fi; \
1290 echo "$${col}$$br$${std}"; \
1291 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
1292 echo "$${col}$$br$${std}"; \
1293 create_testsuite_report --maybe-color; \
1294 echo "$$col$$br$$std"; \
1295 if $$success; then :; else \
1296 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
1297 if test -n "$(PACKAGE_BUGREPORT)"; then \
1298 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
1299 fi; \
1300 echo "$$col$$br$$std"; \
1301 fi; \
1302 $$success || exit 1
1303
1304 check-TESTS:
1305 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
1306 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
1307 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
1308 @set +e; $(am__set_TESTS_bases); \
1309 log_list=`for i in $$bases; do echo $$i.log; done`; \
1310 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
1311 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
1312 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
1313 exit $$?;
1314 recheck: all
1315 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
1316 @set +e; $(am__set_TESTS_bases); \
1317 bases=`for i in $$bases; do echo $$i; done \
1318 | $(am__list_recheck_tests)` || exit 1; \
1319 log_list=`for i in $$bases; do echo $$i.log; done`; \
1320 log_list=`echo $$log_list`; \
1321 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
1322 am__force_recheck=am--force-recheck \
1323 TEST_LOGS="$$log_list"; \
1324 exit $$?
1325 tests/optionaltest.log: tests/optionaltest
1326 @p='tests/optionaltest'; \
1327 b='tests/optionaltest'; \
1328 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1329 --log-file $$b.log --trs-file $$b.trs \
1330 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1331 "$$tst" $(AM_TESTS_FD_REDIRECT)
1332 tests/mantest.log: tests/mantest
1333 @p='tests/mantest'; \
1334 b='tests/mantest'; \
1335 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1336 --log-file $$b.log --trs-file $$b.trs \
1337 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1338 "$$tst" $(AM_TESTS_FD_REDIRECT)
1339 tests/jqtest.log: tests/jqtest
1340 @p='tests/jqtest'; \
1341 b='tests/jqtest'; \
1342 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1343 --log-file $$b.log --trs-file $$b.trs \
1344 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1345 "$$tst" $(AM_TESTS_FD_REDIRECT)
1346 tests/onigtest.log: tests/onigtest
1347 @p='tests/onigtest'; \
1348 b='tests/onigtest'; \
1349 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1350 --log-file $$b.log --trs-file $$b.trs \
1351 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1352 "$$tst" $(AM_TESTS_FD_REDIRECT)
1353 tests/shtest.log: tests/shtest
1354 @p='tests/shtest'; \
1355 b='tests/shtest'; \
1356 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1357 --log-file $$b.log --trs-file $$b.trs \
1358 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1359 "$$tst" $(AM_TESTS_FD_REDIRECT)
1360 tests/utf8test.log: tests/utf8test
1361 @p='tests/utf8test'; \
1362 b='tests/utf8test'; \
1363 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1364 --log-file $$b.log --trs-file $$b.trs \
1365 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1366 "$$tst" $(AM_TESTS_FD_REDIRECT)
1367 tests/base64test.log: tests/base64test
1368 @p='tests/base64test'; \
1369 b='tests/base64test'; \
1370 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1371 --log-file $$b.log --trs-file $$b.trs \
1372 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1373 "$$tst" $(AM_TESTS_FD_REDIRECT)
1374 .test.log:
1375 @p='$<'; \
1376 $(am__set_b); \
1377 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
1378 --log-file $$b.log --trs-file $$b.trs \
1379 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
1380 "$$tst" $(AM_TESTS_FD_REDIRECT)
1381 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
1382 @am__EXEEXT_TRUE@ @p='$<'; \
1383 @am__EXEEXT_TRUE@ $(am__set_b); \
1384 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
1385 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
1386 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
1387 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
1388
1389 distdir: $(DISTFILES)
1390 $(am__remove_distdir)
1391 test -d "$(distdir)" || mkdir "$(distdir)"
1392 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
1393 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
1394 list='$(DISTFILES)'; \
1395 dist_files=`for file in $$list; do echo $$file; done | \
1396 sed -e "s|^$$srcdirstrip/||;t" \
1397 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
1398 case $$dist_files in \
1399 */*) $(MKDIR_P) `echo "$$dist_files" | \
1400 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
1401 sort -u` ;; \
1402 esac; \
1403 for file in $$dist_files; do \
1404 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
1405 if test -d $$d/$$file; then \
1406 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
1407 if test -d "$(distdir)/$$file"; then \
1408 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
1409 fi; \
1410 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
1411 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
1412 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
1413 fi; \
1414 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
1415 else \
1416 test -f "$(distdir)/$$file" \
1417 || cp -p $$d/$$file "$(distdir)/$$file" \
1418 || exit 1; \
1419 fi; \
1420 done
1421 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
1422 if test "$$subdir" = .; then :; else \
1423 $(am__make_dryrun) \
1424 || test -d "$(distdir)/$$subdir" \
1425 || $(MKDIR_P) "$(distdir)/$$subdir" \
1426 || exit 1; \
1427 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
1428 $(am__relativize); \
1429 new_distdir=$$reldir; \
1430 dir1=$$subdir; dir2="$(top_distdir)"; \
1431 $(am__relativize); \
1432 new_top_distdir=$$reldir; \
1433 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
1434 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
1435 ($(am__cd) $$subdir && \
1436 $(MAKE) $(AM_MAKEFLAGS) \
1437 top_distdir="$$new_top_distdir" \
1438 distdir="$$new_distdir" \
1439 am__remove_distdir=: \
1440 am__skip_length_check=: \
1441 am__skip_mode_fix=: \
1442 distdir) \
1443 || exit 1; \
1444 fi; \
1445 done
1446 -test -n "$(am__skip_mode_fix)" \
1447 || find "$(distdir)" -type d ! -perm -755 \
1448 -exec chmod u+rwx,go+rx {} \; -o \
1449 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
1450 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
1451 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
1452 || chmod -R a+r "$(distdir)"
1453 dist-gzip: distdir
1454 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
1455 $(am__post_remove_distdir)
1456
1457 dist-bzip2: distdir
1458 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
1459 $(am__post_remove_distdir)
1460
1461 dist-lzip: distdir
1462 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
1463 $(am__post_remove_distdir)
1464
1465 dist-xz: distdir
1466 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
1467 $(am__post_remove_distdir)
1468
1469 dist-tarZ: distdir
1470 @echo WARNING: "Support for distribution archives compressed with" \
1471 "legacy program 'compress' is deprecated." >&2
1472 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
1473 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
1474 $(am__post_remove_distdir)
1475
1476 dist-shar: distdir
1477 @echo WARNING: "Support for shar distribution archives is" \
1478 "deprecated." >&2
1479 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
1480 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
1481 $(am__post_remove_distdir)
1482
1483 dist-zip: distdir
1484 -rm -f $(distdir).zip
1485 zip -rq $(distdir).zip $(distdir)
1486 $(am__post_remove_distdir)
1487
1488 dist dist-all:
1489 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
1490 $(am__post_remove_distdir)
1491
1492 # This target untars the dist file and tries a VPATH configuration. Then
1493 # it guarantees that the distribution is self-contained by making another
1494 # tarfile.
1495 distcheck: dist
1496 case '$(DIST_ARCHIVES)' in \
1497 *.tar.gz*) \
1498 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
1499 *.tar.bz2*) \
1500 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
1501 *.tar.lz*) \
1502 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
1503 *.tar.xz*) \
1504 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
1505 *.tar.Z*) \
1506 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
1507 *.shar.gz*) \
1508 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
1509 *.zip*) \
1510 unzip $(distdir).zip ;;\
1511 esac
1512 chmod -R a-w $(distdir)
1513 chmod u+w $(distdir)
1514 mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
1515 chmod a-w $(distdir)
1516 test -d $(distdir)/_build || exit 0; \
1517 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
1518 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
1519 && am__cwd=`pwd` \
1520 && $(am__cd) $(distdir)/_build/sub \
1521 && ../../configure \
1522 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
1523 $(DISTCHECK_CONFIGURE_FLAGS) \
1524 --srcdir=../.. --prefix="$$dc_install_base" \
1525 && $(MAKE) $(AM_MAKEFLAGS) \
1526 && $(MAKE) $(AM_MAKEFLAGS) dvi \
1527 && $(MAKE) $(AM_MAKEFLAGS) check \
1528 && $(MAKE) $(AM_MAKEFLAGS) install \
1529 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
1530 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
1531 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
1532 distuninstallcheck \
1533 && chmod -R a-w "$$dc_install_base" \
1534 && ({ \
1535 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
1536 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
1537 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
1538 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
1539 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
1540 } || { rm -rf "$$dc_destdir"; exit 1; }) \
1541 && rm -rf "$$dc_destdir" \
1542 && $(MAKE) $(AM_MAKEFLAGS) dist \
1543 && rm -rf $(DIST_ARCHIVES) \
1544 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
1545 && cd "$$am__cwd" \
1546 || exit 1
1547 $(am__post_remove_distdir)
1548 @(echo "$(distdir) archives ready for distribution: "; \
1549 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
1550 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
1551 distuninstallcheck:
1552 @test -n '$(distuninstallcheck_dir)' || { \
1553 echo 'ERROR: trying to run $@ with an empty' \
1554 '$$(distuninstallcheck_dir)' >&2; \
1555 exit 1; \
1556 }; \
1557 $(am__cd) '$(distuninstallcheck_dir)' || { \
1558 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
1559 exit 1; \
1560 }; \
1561 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
1562 || { echo "ERROR: files left after uninstall:" ; \
1563 if test -n "$(DESTDIR)"; then \
1564 echo " (check DESTDIR support)"; \
1565 fi ; \
1566 $(distuninstallcheck_listfiles) ; \
1567 exit 1; } >&2
1568 distcleancheck: distclean
1569 @if test '$(srcdir)' = . ; then \
1570 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
1571 exit 1 ; \
1572 fi
1573 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
1574 || { echo "ERROR: files left in build directory after distclean:" ; \
1575 $(distcleancheck_listfiles) ; \
1576 exit 1; } >&2
1577 check-am: all-am
1578 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
1579 check: $(BUILT_SOURCES)
1580 $(MAKE) $(AM_MAKEFLAGS) check-recursive
1581 all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(MANS) $(DATA) $(HEADERS)
1582 install-binPROGRAMS: install-libLTLIBRARIES
1583
1584 installdirs: installdirs-recursive
1585 installdirs-am:
1586 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(docdir)" "$(DESTDIR)$(includedir)"; do \
1587 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
1588 done
1589 install: $(BUILT_SOURCES)
1590 $(MAKE) $(AM_MAKEFLAGS) install-recursive
1591 install-exec: install-exec-recursive
1592 install-data: install-data-recursive
1593 uninstall: uninstall-recursive
1594
1595 install-am: all-am
1596 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1597
1598 installcheck: installcheck-recursive
1599 install-strip:
1600 if test -z '$(STRIP)'; then \
1601 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1602 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1603 install; \
1604 else \
1605 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1606 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1607 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
1608 fi
1609 mostlyclean-generic:
1610 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
1611 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
1612 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
1613
1614 clean-generic:
1615
1616 distclean-generic:
1617 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
1618 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
1619 -rm -f src/$(DEPDIR)/$(am__dirstamp)
1620 -rm -f src/$(am__dirstamp)
1621
1622 maintainer-clean-generic:
1623 @echo "This command is intended for maintainers to use"
1624 @echo "it deletes files that may require special tools to rebuild."
1625 -rm -f src/lexer.c
1626 -rm -f src/parser.c
1627 -rm -f src/parser.h
1628 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
1629 clean: clean-recursive
1630
1631 clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \
1632 clean-libtool clean-local mostlyclean-am
1633
1634 distclean: distclean-recursive
1635 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1636 -rm -rf src/$(DEPDIR)
1637 -rm -f Makefile
1638 distclean-am: clean-am distclean-compile distclean-generic \
1639 distclean-libtool distclean-tags
1640
1641 dvi: dvi-recursive
1642
1643 dvi-am:
1644
1645 html: html-recursive
1646
1647 html-am:
1648
1649 info: info-recursive
1650
1651 info-am:
1652
1653 install-data-am: install-dist_docDATA install-includeHEADERS \
1654 install-man
1655
1656 install-dvi: install-dvi-recursive
1657
1658 install-dvi-am:
1659
1660 install-exec-am: install-binPROGRAMS install-libLTLIBRARIES
1661
1662 install-html: install-html-recursive
1663
1664 install-html-am:
1665
1666 install-info: install-info-recursive
1667
1668 install-info-am:
1669
1670 install-man: install-man1
1671
1672 install-pdf: install-pdf-recursive
1673
1674 install-pdf-am:
1675
1676 install-ps: install-ps-recursive
1677
1678 install-ps-am:
1679
1680 installcheck-am:
1681
1682 maintainer-clean: maintainer-clean-recursive
1683 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1684 -rm -rf $(top_srcdir)/autom4te.cache
1685 -rm -rf src/$(DEPDIR)
1686 -rm -f Makefile
1687 maintainer-clean-am: distclean-am maintainer-clean-generic
1688
1689 mostlyclean: mostlyclean-recursive
1690
1691 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
1692 mostlyclean-libtool
1693
1694 pdf: pdf-recursive
1695
1696 pdf-am:
1697
1698 ps: ps-recursive
1699
1700 ps-am:
1701
1702 uninstall-am: uninstall-binPROGRAMS uninstall-dist_docDATA \
1703 uninstall-includeHEADERS uninstall-libLTLIBRARIES \
1704 uninstall-man
1705
1706 uninstall-man: uninstall-man1
1707
1708 .MAKE: $(am__recursive_targets) all check check-am install install-am \
1709 install-strip
1710
1711 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
1712 am--refresh check check-TESTS check-am clean clean-binPROGRAMS \
1713 clean-cscope clean-generic clean-libLTLIBRARIES clean-libtool \
1714 clean-local cscope cscopelist-am ctags ctags-am dist dist-all \
1715 dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ dist-xz \
1716 dist-zip distcheck distclean distclean-compile \
1717 distclean-generic distclean-libtool distclean-tags \
1718 distcleancheck distdir distuninstallcheck dvi dvi-am html \
1719 html-am info info-am install install-am install-binPROGRAMS \
1720 install-data install-data-am install-dist_docDATA install-dvi \
1721 install-dvi-am install-exec install-exec-am install-html \
1722 install-html-am install-includeHEADERS install-info \
1723 install-info-am install-libLTLIBRARIES install-man \
1724 install-man1 install-pdf install-pdf-am install-ps \
1725 install-ps-am install-strip installcheck installcheck-am \
1726 installdirs installdirs-am maintainer-clean \
1727 maintainer-clean-generic mostlyclean mostlyclean-compile \
1728 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
1729 recheck tags tags-am uninstall uninstall-am \
1730 uninstall-binPROGRAMS uninstall-dist_docDATA \
1731 uninstall-includeHEADERS uninstall-libLTLIBRARIES \
1732 uninstall-man uninstall-man1
1733
1734 .PRECIOUS: Makefile
1735
1736 @MAINTAINER_MODE_TRUE@src/lexer.c: src/lexer.l
1737 @MAINTAINER_MODE_TRUE@ $(AM_V_LEX) flex -o src/lexer.c --header-file=src/lexer.h $<
1738 @MAINTAINER_MODE_TRUE@src/lexer.h: src/lexer.c
1739 @MAINTAINER_MODE_FALSE@.y.c:
1740 @MAINTAINER_MODE_FALSE@ $(AM_V_YACC) echo "NOT building parser.c!"
1741 @MAINTAINER_MODE_FALSE@.l.c:
1742 @MAINTAINER_MODE_FALSE@ $(AM_V_LEX) echo "NOT building lexer.c!"
1743
1744 ### Building the jq binary
1745
1746 # Remake the version.h header file if, and only if, the git ID has changed
1747 .PHONY: .FORCE
1748 .FORCE:
1749 .remake-version-h: .FORCE
1750 @ $(generate_ver); test "x`cat src/version.h 2>/dev/null`" = "x$$ver" || touch .remake-version-h
1751 src/version.h: .remake-version-h
1752 $(AM_V_GEN) $(generate_ver); echo "$$ver" > $@
1753 src/main.c: src/version.h
1754
1755 src/builtin.inc: src/builtin.jq
1756 $(AM_V_GEN) sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/^/"/' -e 's/$$/\\n"/' $^ > $@
1757 src/builtin.o: src/builtin.inc
1758 @ENABLE_DOCS_TRUE@jq.1: $(srcdir)/docs/content/3.manual/manual.yml
1759 @ENABLE_DOCS_TRUE@ $(AM_V_GEN) ( cd ${abs_srcdir}/docs; '$(BUNDLER)' exec rake manpage ) > $@ || { rm -f $@; false; }
1760 @ENABLE_DOCS_TRUE@jq.1.prebuilt: jq.1
1761 @ENABLE_DOCS_TRUE@ $(AM_V_GEN) cp $^ $@ || { rm -f $@; false; }
1762 @ENABLE_DOCS_FALSE@jq.1: $(srcdir)/jq.1.prebuilt
1763 @ENABLE_DOCS_FALSE@ $(AM_V_GEN) cp $^ $@
1764
1765 ### Packaging
1766
1767 docs/site.yml: configure.ac
1768 sed 's/^jq_version: .*/jq_version: "$(VERSION)"/' $@ > $@.new
1769 mv $@.new $@
1770
1771 install-binaries: $(BUILT_SOURCES)
1772 $(MAKE) $(AM_MAKEFLAGS) install-exec
1773
1774 RELEASE ?= 1
1775 rpm: dist jq.spec
1776 @echo "Packaging jq as an RPM ..."
1777 mkdir -p rpm/SOURCES rpm/BUILD rpm/BUILDROOT rpm/RPMS rpm/SPECS
1778 cp jq-$(VERSION).tar.gz rpm/SOURCES/
1779 rpmbuild -tb --define "_topdir ${PWD}/rpm" --define "_prefix /usr" --define "myver $(VERSION)" --define "myrel ${RELEASE}" rpm/SOURCES/jq-$(VERSION).tar.gz
1780 find rpm/RPMS/ -name "*.rpm" -exec mv {} ./ \;
1781 rm -rf rpm
1782
1783 dist-clean-local:
1784 rm -f ${BUILT_SOURCES}
1785
1786 # Not sure why this doesn't get cleaned up automatically, guess
1787 # automake used to man pages which are hand coded?
1788 # 'make clean' doesn't delete the manpage if it can't be rebuilt
1789 clean-local-docs:
1790 @ENABLE_DOCS_TRUE@ rm -f jq.1
1791
1792 clean-local-gcov:
1793 rm -f src/*.gcno src/*.gcda src/*.gcov
1794
1795 clean-local: clean-local-docs clean-local-gcov
1796 rm -f src/version.h .remake-version-h
1797
1798 .PHONY: clean-local-docs clean-local-gcov
1799
1800 # Tell versions [3.59,3.63) of GNU make to not export all variables.
1801 # Otherwise a system limit (for SysV at least) may be exceeded.
1802 .NOEXPORT: