1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

Move jq-coded builtins to non-C file (fix #424)

This commit is contained in:
David Tolnay
2015-10-17 23:24:13 -07:00
parent b80d58e167
commit 143e8dc5e4
4 changed files with 302 additions and 296 deletions

View File

@ -86,6 +86,10 @@ src/version.h: .remake-version-h
$(AM_V_GEN) $(generate_ver); echo "$$ver" > $@
src/main.c: src/version.h
src/builtin.inc: src/builtin.jq
$(AM_V_GEN) sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/^/"/' -e 's/$$/\\n"/' $^ > $@
src/main.c: src/builtin.inc
bin_PROGRAMS = jq
jq_SOURCES = src/main.c src/version.h
jq_LDFLAGS = -static-libtool-libs