guestfs_protocol.c \
guestfs_protocol.h
-include_HEADERS = guestfs.h guestfs-actions.h
+EXTRA_DIST += generator.ml
+
+include_HEADERS = guestfs.h guestfs-actions.h guestfs-structs.h
lib_LTLIBRARIES = libguestfs.la
libguestfs_la_CFLAGS = -Wall -DGUESTFS_DEFAULT_PATH='"$(libdir)/guestfs"'
-if RPCGEN
+if HAVE_RPCGEN
guestfs_protocol.c: guestfs_protocol.x
rm -f $@-t
$(RPCGEN) -c -o $@-t $<
rm -f $@-t
$(RPCGEN) -h -o $@-t $<
mv $@-t $@
-endif
\ No newline at end of file
+endif
+
+CLEANFILES = *~