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
29 WIXOBJ = $(OUT)\openafs-$(LANG).wixobj
30 !IF ("$(CPU)" == "i386")
31 BINWIXOBJ = $(OUT)\openafs-32bit-tools-$(LANG).wixobj
34 LANGUAGES=en_US de_DE es_ES ja_JP ko_KR pt_BR zh_CN zh_TW
37 # Don't bother with non en_US for now. The other builds comprise of either
38 # verbatim copies of en_US files, partial translations or doesn't build
39 # (no languages resources). Someday when OpenAFS 8.1029828419 comes out we'll
40 # get someone to translate.
41 # for %l in ( $(LANGUAGES ) do (
42 # $(MAKE) /f NTMakefile /nologo LANG=%l lang
44 $(MAKE) /f NTMakefile /nologo LANG=en_US lang
47 lang:: lang_clean $(MSIFILE) $(BINMSIFILE)
51 $(MAKE) /f NTMakefile /nologo install
56 $(MAKE) /f NTMakefile /nologo install
59 install: uninst customactions languages
62 light -nologo -out $(MSIFILE) \
63 -loc lang\$(LANG)\strings.wxl \
67 $(WIXOBJ): openafs.wxs $(WIXINCLUDES)
68 candle -nologo -out $@ \
69 "-dCellName=$(CELLNAME_DEFAULT)" \
71 -dNumericVersion=$(AFSPRODUCT_VERSION) \
72 -dVersionMajor=$(AFSPRODUCT_VER_MAJOR) \
73 -dVersionMinor=$(AFSPRODUCT_VER_MINOR) \
74 -dVersionPatch=$(AFSPRODUCT_VER_PATCH) \
75 "-dDestDir=$(DESTDIR)\\" \
76 -dCellDbFile=CellServDB \
79 $(AFSDEV_AUXWIXDEFINES) openafs.wxs
81 !IF ("$(CPU)" == "i386")
82 $(BINWIXOBJ): oafwbins.wxs $(WIXINCLUDES)
83 candle -nologo -out $@ \
84 "-dCellName=$(CELLNAME_DEFAULT)" \
86 -dNumericVersion=$(AFSPRODUCT_VERSION) \
87 -dVersionMajor=$(AFSPRODUCT_VER_MAJOR) \
88 -dVersionMinor=$(AFSPRODUCT_VER_MINOR) \
89 -dVersionPatch=$(AFSPRODUCT_VER_PATCH) \
90 "-dDestDir=$(DESTDIR)\\" \
91 -dCellDbFile=CellServDB \
94 $(AFSDEV_AUXWIXDEFINES) oafwbins.wxs
96 $(BINMSIFILE): $(BINWIXOBJ)
97 light -nologo -out $(BINMSIFILE) \
98 -loc lang\en_US\strings.wxl \
105 for %l in ( $(LANGUAGES) ) do \
106 $(MAKE) /f NTMakefile /nologo LANG=%l lang_clean
108 $(MAKE) /f NTMakefile /nologo clean
111 $(MAKE) /f NTMakefile /nologo clean
117 !IF ("$(CPU)" == "i386")
119 -$(DEL) $(BINMSIFILE)