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 authored and Nicolas Williams committed 2015-06-09 19:01:20 -05:00
1 parent 520b429ca0
commit c95b4a8ab4
1 file changed
+1
+1
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