### 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.
# 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
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.
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}/$@
-AC_INIT([jq], m4_esyscmd([tr -d '\n' <VERSION]), [mu@netsoc.tcd.ie],
+AC_INIT([jq], [1.2], [mu@netsoc.tcd.ie],
[jq], [http://stedolan.github.com/jq/])
dnl Created autoconf implementation thompson@dtosolutions, 26NOV12
# The key value pairs found below are available within the templates.
+# This line is modified by the Makefile. To change the version number,
+# edit the Autoconf version number at the top of configure.ac
jq_version: 1.2
+
root: '/jq'
footer: |
jq is licensed under the MIT license (code) and the
[CC-BY-3.0](http://creativecommons.org/licenses/by/3.0/) license
- (docs).
\ No newline at end of file
+ (docs).