-EXTRA_DIST = \
- guestfs_protocol.x \
- MAX_PROC_NR \
- stamp-generator \
- generator.ml \
- guestfs-internal-actions.h
-
-# Rerun the generator if it has changed.
-# Git removes empty directories, so in cases where the
-# generator is creating the sole file in a directory, we
-# have to create the directory first.
-noinst_DATA = stamp-generator
-
-stamp-generator: generator.ml
- 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