X-Git-Url: http://git.annexia.org/?p=virt-top.git;a=blobdiff_plain;f=libvirt%2FMakefile.in;h=4b203fd04984c93d7bc6c42a3cd4d0a6335965c6;hp=53b25b012d02072eec49e7847de056017725e81b;hb=8a8008134e997330d61e0b9736e9067b5689b531;hpb=3126bfee333b5c635dc60a54265936af06117f6a diff --git a/libvirt/Makefile.in b/libvirt/Makefile.in old mode 100755 new mode 100644 index 53b25b0..4b203fd --- a/libvirt/Makefile.in +++ b/libvirt/Makefile.in @@ -98,6 +98,21 @@ $(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: libvirt_c.c + @echo -n "Functions which have manual bindings: " + @grep ^ocaml_libvirt_ libvirt_c_oneoffs.c | wc -l + @echo -n "Functions which have automatic bindings: " + @grep ^ocaml_libvirt_ libvirt_c.c | wc -l + @echo -n "LOC in manual bindings: " + @wc -l < libvirt_c_oneoffs.c + @echo -n "LOC in automatic bindings: " + @wc -l < libvirt_c.c + libvirt.cmo: libvirt.cmi libvirt.cmi: libvirt.mli