summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.in')
-rwxr-xr-xMakefile.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index 703d14e..3d3f561 100755
--- a/Makefile.in
+++ b/Makefile.in
@@ -20,6 +20,8 @@ VERSION = @PACKAGE_VERSION@
INSTALL = @INSTALL@
+MAKENSIS = @MAKENSIS@
+
OCAMLDOC = @OCAMLDOC@
OCAMLDOCFLAGS := -html -sort
@@ -65,6 +67,18 @@ doc:
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=$@ //V2 $<
+ ls -l $@
+endif
+
# Update configure and rerun.
configure: force