Note that files generated by src/generator.ml are stored in
the srcdir, *not* the builddir. The reason is so that they
can be included in the tarball and will appear in the srcdir
for tarball builds.
noinst_DATA = stamp-generator
stamp-generator: generator.ml
- mkdir -p $(top_builddir)/perl/lib/Sys
- mkdir -p $(top_builddir)/ruby/ext/guestfs
- mkdir -p $(top_builddir)/java/com/redhat/et/libguestfs
- cd $(top_builddir) && ocaml -warn-error A ./src/$<
+ mkdir -p $(top_srcdir)/perl/lib/Sys
+ mkdir -p $(top_srcdir)/ruby/ext/guestfs
+ mkdir -p $(top_srcdir)/java/com/redhat/et/libguestfs
+ cd $(top_srcdir) && ocaml -warn-error A src/generator.ml
guestfs_protocol.x: stamp-generator
let () =
check_functions ();
- if not (Sys.file_exists "config.status") then (
+ if not (Sys.file_exists "HACKING") then (
eprintf "\
You are probably running this from the wrong directory.
Run it from the top source directory using the command