Move to autogeneration of many C bindings.
[virt-top.git] / libvirt / Makefile.in
index 53b25b0..9387bc9 100644 (file)
@@ -98,6 +98,10 @@ $(BYTE_TARGETS) $(OPT_TARGETS):
 endif
 endif
 
+# Automatically generate the C code from a Perl script 'generator.pl'.
+libvirt_c.c: generator.pl
+       perl -w $< > $@
+
 libvirt.cmo: libvirt.cmi
 libvirt.cmi: libvirt.mli