build: Generate complete OCaml dependencies.
authorRichard W.M. Jones <rjones@redhat.com>
Sat, 4 Jan 2020 09:49:21 +0000 (09:49 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Sat, 4 Jan 2020 09:49:21 +0000 (09:49 +0000)
Because we didn't use -I src on the ocamldep command line, ocamldep
didn't generate the complete set of dependencies.

Goalfile.in

index 4a80a3f..afe6c1e 100644 (file)
@@ -81,7 +81,7 @@ goal depend () =
     rm -f %@ %@-t
     # Like many existing tools, ocamldep produces make-compatible
     # output which doesn't work directly in goals.
-    %OCAMLDEP -all -one-line %< |
+    %OCAMLDEP -all -one-line -I src %< |
         sed 's|[./[:alnum:]]\+|"&"|g' |
         sed 's|" "|", "|g' |
         sed 's|.*|& ;|' > %@-t