INSTALL = @INSTALL@
+MAKENSIS = @MAKENSIS@
+
OCAMLDOC = @OCAMLDOC@
OCAMLDOCFLAGS := -html -sort
done
rm -f examples/list_domains
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
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
libvirt.{ml,mli} libvirt_version.{ml,mli}
endif
+# Windows installer (requires NSIS).
+
+ifneq ($(MAKENSIS),)
+wininstaller: $(PACKAGE)-$(VERSION).exe
+
+$(PACKAGE)-$(VERSION).exe: wininstaller.nsis all opt
+ "$(MAKENSIS)" \
+ //DPACKAGE=$(PACKAGE) //DVERSION=$(VERSION) \
+ //DOUTFILE=$@ $<
+ ls -l $@
+endif
+
# Update configure and rerun.
configure: force