Add 'make autostatus' target so we can test how we autogeneration of bindings is...
[virt-top.git] / libvirt / Makefile.in
old mode 100755 (executable)
new mode 100644 (file)
index 53b25b0..3bc06ac
@@ -98,6 +98,17 @@ $(BYTE_TARGETS) $(OPT_TARGETS):
 endif
 endif
 
+# Automatically generate the C code from a Perl script 'generator.pl'.
+libvirt_c.c: generator.pl
+       perl -w $< > $@
+
+# Status of automatically generated bindings.
+autostatus:
+       @echo -n "Functions which have manual bindings: "
+       @grep ^ocaml_libvirt_ libvirt_c_oneoffs.c  | wc -l
+       @echo -n "LOC in manual bindings: "
+       @wc -l < libvirt_c_oneoffs.c
+
 libvirt.cmo: libvirt.cmi
 libvirt.cmi: libvirt.mli