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

Add Missing Makefile Dependency

main.c requires version.h, but there is no logic marking this dependency
in the Makefile. This commit adds the dependency to the Makefile
template.
This commit is contained in:
Aaron Peschel
2015-06-09 16:45:06 -07:00
committed by Nicolas Williams
parent 520b429ca0
commit c95b4a8ab4

View File

@ -66,6 +66,7 @@ generate_ver = ver="`{ $(srcdir)/scripts/version || echo '$(VERSION)' ; } | sed
@ $(generate_ver); test "x`cat version.h 2>/dev/null`" = "x$$ver" || touch .remake-version-h
version.h: .remake-version-h
$(AM_V_GEN) $(generate_ver); echo "$$ver" > $@
main.c: version.h
bin_PROGRAMS = jq
jq_SOURCES = main.c version.h