1 # Copyright 2004, OpenAFS.ORG and others.
4 # This software has been released under the terms of the IBM Public
5 # License. For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
8 RELDIR=WINNT\install\wix
9 !INCLUDE ..\..\..\config\NTMakefile.$(SYS_NAME)
10 !INCLUDE ..\..\..\config\NTMakefile.version
12 MEDIADIR = $(DESTDIR)\WinInstall
13 MEDIABINDIR = $(MEDIADIR)\Dll
15 MSIFILE = $(MEDIADIR)\openafs-$(LANG).msi
16 !IF ("$(CPU)" == "i386")
17 BINMSIFILE = $(MEDIADIR)\openafs-32bit-tools-$(LANG).msi
21 !ERROR Please set MSIDNNLS to the directory where Microsoft IDN Mitigation APIs are installed.
22 # $(MSIDNNLS)\REDIST\idndl.(platform).exe should exist.
34 WIXOBJ = $(OUT)\openafs-$(LANG).wixobj
35 !IF ("$(CPU)" == "i386")
36 BINWIXOBJ = $(OUT)\openafs-32bit-tools-$(LANG).wixobj
39 WIXCYGOPT=-dCygwinArchives
44 LANGUAGES=en_US de_DE es_ES ja_JP ko_KR pt_BR zh_CN zh_TW
47 # Don't bother with non en_US for now. The other builds comprise of either
48 # verbatim copies of en_US files, partial translations or doesn't build
49 # (no languages resources). Someday when OpenAFS 8.1029828419 comes out we'll
50 # get someone to translate.
51 # for %l in ( $(LANGUAGES ) do (
52 # $(MAKE) /f NTMakefile /nologo LANG=%l lang
54 $(MAKE) /f NTMakefile /nologo LANG=en_US lang
57 lang:: lang_clean $(MSIFILE) $(BINMSIFILE)
61 $(MAKE) /f NTMakefile /nologo install
66 $(MAKE) /f NTMakefile /nologo install
69 install: uninst customactions languages
72 light -nologo -out $(MSIFILE) \
73 -loc lang\$(LANG)\strings.wxl \
78 $(WIXOBJ): openafs.wxs $(WIXINCLUDES)
79 candle -nologo -out $@ \
80 "-dCellName=$(CELLNAME_DEFAULT)" \
82 -dNumericVersion=$(AFSPRODUCT_VERSION) \
83 -dVersionMajor=$(AFSPRODUCT_VER_MAJOR) \
84 -dVersionMinor=$(AFSPRODUCT_VER_MINOR) \
85 -dVersionPatch=$(AFSPRODUCT_VER_PATCH) \
86 "-dDestDir=$(DESTDIR)\\" \
87 -dCellDbFile=CellServDB \
88 "-dIDNMRedistDir=$(MSIDNNLS)\\REDIST" \
91 $(WIXCYGOPT) $(AFSDEV_AUXWIXDEFINES) openafs.wxs
93 !IF ("$(CPU)" == "i386")
94 $(BINWIXOBJ): oafwbins.wxs $(WIXINCLUDES)
95 candle -nologo -out $@ \
96 "-dCellName=$(CELLNAME_DEFAULT)" \
98 -dNumericVersion=$(AFSPRODUCT_VERSION) \
99 -dVersionMajor=$(AFSPRODUCT_VER_MAJOR) \
100 -dVersionMinor=$(AFSPRODUCT_VER_MINOR) \
101 -dVersionPatch=$(AFSPRODUCT_VER_PATCH) \
102 "-dDestDir=$(DESTDIR)\\" \
103 -dCellDbFile=CellServDB \
106 $(WIXCYGOPT) $(AFSDEV_AUXWIXDEFINES) oafwbins.wxs
108 $(BINMSIFILE): $(BINWIXOBJ)
109 light -nologo -out $(BINMSIFILE) \
110 -loc lang\en_US\strings.wxl \
118 for %l in ( $(LANGUAGES) ) do \
119 $(MAKE) /f NTMakefile /nologo LANG=%l lang_clean
121 $(MAKE) /f NTMakefile /nologo clean
124 $(MAKE) /f NTMakefile /nologo clean
130 !IF ("$(CPU)" == "i386")
132 -$(DEL) $(BINMSIFILE)