diff --git a/Makefile.am b/Makefile.am index 52e73379..58250496 100644 --- a/Makefile.am +++ b/Makefile.am @@ -50,6 +50,10 @@ TEST_LOG_COMPILER = tests/run ### Packaging +docs/site.yml: configure.ac + sed 's/^jq_version: .*/jq_version: $(VERSION)/' $@ > $@.new + mv $@.new $@ + # setup is only used by distribution developers, not package developers. # Still, as a matter of allowing patching, its not a bad idea to distribute # the developer setup script in the tarball. diff --git a/Makefile.in b/Makefile.in index 5a8e9a9c..692cca20 100644 --- a/Makefile.in +++ b/Makefile.in @@ -359,7 +359,7 @@ AM_CFLAGS = -Wextra -Wall -Wno-missing-field-initializers \ # While there is some autoconf macro support for lex/flex, it doesn't support # header file creation so we'll use good old make -BUILT_SOURCES = lexer.h lexer.c +BUILT_SOURCES = lexer.h lexer.c parser.h parser.c # Tell YACC (bison) autoconf macros that you want a header file created. # If the --warnings=all fails, you probably have an old version of bison @@ -373,8 +373,6 @@ jq_SOURCES = ${JQ_SRC} main.c TESTS = tests/all.test TEST_LOG_COMPILER = tests/run -### Packaging - # setup is only used by distribution developers, not package developers. # Still, as a matter of allowing patching, its not a bad idea to distribute # the developer setup script in the tarball. @@ -1099,6 +1097,12 @@ lexer.h: lexer.c main.c: config.h +### Packaging + +docs/site.yml: configure.ac + sed 's/^jq_version: .*/jq_version: $(VERSION)/' $@ > $@.new + mv $@.new $@ + jq.1 : cd ${abs_srcdir}/docs; rake manpage > ${abs_builddir}/$@ diff --git a/configure.ac b/configure.ac index c42425d9..5bbc0b55 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_INIT([jq], m4_esyscmd([tr -d '\n'