aboutsummaryrefslogtreecommitdiff
path: root/ports.mk
diff options
context:
space:
mode:
authorLittleboy2011-05-11 17:54:34 -0400
committerLittleboy2011-05-11 17:54:34 -0400
commit217089adfa998a62deb4c1a3fc7613888fcd23cb (patch)
tree8776296e06cad53c2163e565172423edfc152626 /ports.mk
parentb38d965fdf18e728e7fb4c05a02ef6ff7f1ee256 (diff)
downloadscummvm-rg350-217089adfa998a62deb4c1a3fc7613888fcd23cb.tar.gz
scummvm-rg350-217089adfa998a62deb4c1a3fc7613888fcd23cb.tar.bz2
scummvm-rg350-217089adfa998a62deb4c1a3fc7613888fcd23cb.zip
CONFIGURE: Fix creation of the NSIS installer when building out of tree
Diffstat (limited to 'ports.mk')
-rw-r--r--ports.mk63
1 files changed, 32 insertions, 31 deletions
diff --git a/ports.mk b/ports.mk
index 1234a69933..574d78f71e 100644
--- a/ports.mk
+++ b/ports.mk
@@ -164,38 +164,39 @@ osxsnap: bundle
scummvmwinres.o: $(srcdir)/icons/scummvm.ico $(DIST_FILES_THEMES) $(DIST_FILES_ENGINEDATA) $(srcdir)/dists/scummvm.rc
$(QUIET_WINDRES)$(WINDRES) -DHAVE_CONFIG_H $(WINDRESFLAGS) $(DEFINES) -I. -I$(srcdir) $(srcdir)/dists/scummvm.rc scummvmwinres.o
-# Special target to create a win32 snapshot binary
-win32dist: $(EXECUTABLE)
- mkdir -p $(WIN32PATH)
- $(STRIP) $(EXECUTABLE) -o $(WIN32PATH)/$(EXECUTABLE)
- cp $(DIST_FILES_THEMES) $(WIN32PATH)
+# Special target to prepare data files for distribution / installer creation
+win32data: $(EXECUTABLE)
+ mkdir -p $(srcdir)/$(WIN32PATH)
+ cp $(srcdir)/AUTHORS $(srcdir)/$(WIN32PATH)
+ cp $(srcdir)/COPYING $(srcdir)/$(WIN32PATH)
+ cp $(srcdir)/COPYING.LGPL $(srcdir)/$(WIN32PATH)
+ cp $(srcdir)/COPYRIGHT $(srcdir)/$(WIN32PATH)
+ cp $(srcdir)/NEWS $(srcdir)/$(WIN32PATH)
+ cp $(srcdir)/README $(srcdir)/$(WIN32PATH)
+ cp /usr/local/README-SDL.txt $(srcdir)/$(WIN32PATH)/README-SDL
+ unix2dos $(srcdir)/$(WIN32PATH)/*.*
+ $(STRIP) $(EXECUTABLE) -o $(srcdir)/$(WIN32PATH)/$(EXECUTABLE)
+ cp $(DIST_FILES_THEMES) $(srcdir)/$(WIN32PATH)
ifdef DIST_FILES_ENGINEDATA
- cp $(DIST_FILES_ENGINEDATA) $(WIN32PATH)
-endif
- cp $(srcdir)/AUTHORS $(WIN32PATH)/AUTHORS.txt
- cp $(srcdir)/COPYING $(WIN32PATH)/COPYING.txt
- cp $(srcdir)/COPYING.LGPL $(WIN32PATH)/COPYING.LGPL.txt
- cp $(srcdir)/COPYRIGHT $(WIN32PATH)/COPYRIGHT.txt
- cp $(srcdir)/NEWS $(WIN32PATH)/NEWS.txt
- cp $(srcdir)/README $(WIN32PATH)/README.txt
- cp /usr/local/README-SDL.txt $(WIN32PATH)
- cp /usr/local/bin/SDL.dll $(WIN32PATH)
- cp $(srcdir)/icons/scummvm.ico $(WIN32PATH)
- cp $(srcdir)/dists/win32/ScummVM.iss $(WIN32PATH)
- unix2dos $(WIN32PATH)/*.txt
-
-# Special target to create a win32 installer
-# (extensions for text files are removed, as they are read
-# as-is by the setup script and renamed there)
-win32setup: win32dist
- mv $(WIN32PATH)/AUTHORS.txt $(WIN32PATH)/AUTHORS
- mv $(WIN32PATH)/COPYING.txt $(WIN32PATH)/COPYING
- mv $(WIN32PATH)/COPYING.LGPL.txt $(WIN32PATH)/COPYING.LGPL
- mv $(WIN32PATH)/COPYRIGHT.txt $(WIN32PATH)/COPYRIGHT
- mv $(WIN32PATH)/NEWS.txt $(WIN32PATH)/NEWS
- mv $(WIN32PATH)/README.txt $(WIN32PATH)/README
- mv $(WIN32PATH)/README-SDL.txt $(WIN32PATH)/README-SDL
- makensis -V2 -Dtop_srcdir="../../$(srcdir)" -Dtext_dir="../../$(WIN32PATH)" -Dbuild_dir="../../$(WIN32PATH)" $(srcdir)/dists/nsis/scummvm.nsi
+ cp $(DIST_FILES_ENGINEDATA) $(srcdir)/$(WIN32PATH)
+endif
+ cp /usr/local/bin/SDL.dll $(srcdir)/$(WIN32PATH)
+
+# Special target to create a win32 snapshot binary (for Inno Setup)
+win32dist: win32data
+ cp $(srcdir)/icons/scummvm.ico $(srcdir)/$(WIN32PATH)
+ cp $(srcdir)/dists/win32/ScummVM.iss $(srcdir)/$(WIN32PATH)
+ mv $(WIN32PATH)/AUTHORS $(srcdir)/$(WIN32PATH)/AUTHORS.txt
+ mv $(WIN32PATH)/COPYING $(srcdir)/$(WIN32PATH)/COPYING.txt
+ mv $(WIN32PATH)/COPYING.LGPL $(srcdir)/$(WIN32PATH)/COPYING.LGPL.txt
+ mv $(WIN32PATH)/COPYRIGHT $(srcdir)/$(WIN32PATH)/COPYRIGHT.txt
+ mv $(WIN32PATH)/NEWS $(srcdir)/$(WIN32PATH)/NEWS.txt
+ mv $(WIN32PATH)/README $(srcdir)/$(WIN32PATH)/README.txt
+ mv $(WIN32PATH)/README-SDL $(srcdir)/$(WIN32PATH)/README-SDL.txt
+
+# Special target to create a win32 NSIS installer
+win32setup: win32data
+ makensis -V2 -Dtop_srcdir="../.." -Dtext_dir="../../$(WIN32PATH)" -Dbuild_dir="../../$(WIN32PATH)" $(srcdir)/dists/nsis/scummvm.nsi
#
# AmigaOS specific