Move main code to virt_df_main.ml and provide explicit interface virt_df.mli
[virt-top.git] / Makefile.in
index 53a6829..52776e0 100644 (file)
@@ -35,9 +35,10 @@ all opt depend install:
 
 clean:
        for d in . $(SUBDIRS); do \
-         (cd $$d; rm -f *.cmi *.cmo *.cmx *.cma *.cmxa *.o *.a *.so *.opt *~ *.dll core); \
+         (cd $$d; rm -f *.cmi *.cmo *.cmx *.cma *.cmxa *.o *.a *.so *.opt *~ *.dll *.exe core); \
        done
        rm -f examples/list_domains
+       rm -f examples/node_info
        rm -f mlvirsh/mlvirsh
        rm -f virt-ctrl/virt-ctrl
        rm -f virt-top/virt-top
@@ -69,10 +70,12 @@ endif
 
 # Windows installer (requires NSIS).
 
+WININSTALLER := $(PACKAGE)-$(VERSION).exe
+
 ifneq ($(MAKENSIS),)
-wininstaller: $(PACKAGE)-$(VERSION).exe
+wininstaller: $(WININSTALLER)
 
-$(PACKAGE)-$(VERSION).exe: wininstaller.nsis all opt
+$(WININSTALLER): wininstaller.nsis all opt
        "$(MAKENSIS)" \
          //DPACKAGE=$(PACKAGE) //DVERSION=$(VERSION) \
          //DOUTFILE=$@ $<
@@ -136,6 +139,11 @@ upload:
          libvirt.org:/data/www/libvirt.org/ocaml/html/
        scp $(PACKAGE)-$(VERSION).tar.gz libvirt.org:/data/ftp/libvirt/ocaml/
 
+# Upload Windows binary installer to main website.
+
+winupload:
+       scp $(WININSTALLER) libvirt.org:/data/ftp/libvirt/ocaml/
+
 force:
 
 .PHONY: all opt depend install clean distclean configure dist check-manifest \