INSTALL = @INSTALL@
+MAKENSIS = @MAKENSIS@
+
OCAMLDOC = @OCAMLDOC@
OCAMLDOCFLAGS := -html -sort
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