Move main code to virt_df_main.ml and provide explicit interface virt_df.mli
[virt-top.git] / Makefile.in
old mode 100755 (executable)
new mode 100644 (file)
index 703d14e..52776e0
@@ -20,6 +20,8 @@ VERSION               = @PACKAGE_VERSION@
 
 INSTALL                = @INSTALL@
 
+MAKENSIS       = @MAKENSIS@
+
 OCAMLDOC        = @OCAMLDOC@
 OCAMLDOCFLAGS  := -html -sort
 
@@ -33,11 +35,12 @@ 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 mlvirtmanager/mlvirtmanager
+       rm -f virt-ctrl/virt-ctrl
        rm -f virt-top/virt-top
        rm -f virt-df/virt-df
 
@@ -50,7 +53,7 @@ distclean: clean
        rm -f libvirt/Makefile
        rm -f examples/Makefile
        rm -f mlvirsh/Makefile
-       rm -f mlvirtmanager/Makefile
+       rm -f virt-ctrl/Makefile
        rm -f virt-top/Makefile
        rm -f virt-df/Makefile
 
@@ -65,6 +68,20 @@ doc:
          libvirt.{ml,mli} libvirt_version.{ml,mli}
 endif
 
+# Windows installer (requires NSIS).
+
+WININSTALLER := $(PACKAGE)-$(VERSION).exe
+
+ifneq ($(MAKENSIS),)
+wininstaller: $(WININSTALLER)
+
+$(WININSTALLER): wininstaller.nsis all opt
+       "$(MAKENSIS)" \
+         //DPACKAGE=$(PACKAGE) //DVERSION=$(VERSION) \
+         //DOUTFILE=$@ $<
+       ls -l $@
+endif
+
 # Update configure and rerun.
 
 configure: force
@@ -122,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 \