Fix executable permissions added by Windoze.
[virt-top.git] / Makefile.in
old mode 100755 (executable)
new mode 100644 (file)
index 703d14e..172b103
@@ -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=$@ $<
+       ls -l $@
+endif
+
 # Update configure and rerun.
 
 configure: force