1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
CULTURE = zh-cn
LANG_FILE = zh_CN.wxl
TARGET = seafile.msi
ifeq (${MAKECMDGOALS}, en)
CULTURE = en-us
LANG_FILE = en_US.wxl
TARGET = seafile-en.msi
endif
ifeq (${MAKECMDGOALS}, de)
CULTURE = de-de
LANG_FILE = de_DE.wxl
TARGET = seafile-de.msi
endif
all : $(TARGET)
en: all
de: all
CC=candle.exe
LD=light.exe
CFLAGS = -nologo -ext WixUIExtension -ext WixUtilExtension
LDFLAGS = -nologo -spdb -ext \
WixUIExtension -ext WixUtilExtension \
-loc ${LANG_FILE} -cultures:${CULTURE} \
-sice:ICE80
sources = WixUI_InstallDir_NoLicense.wxs MyInstallDirDlg.wxs \
seafile.wxs fragment.wxs shell.wxs
OBJECTS = ${sources:%.wxs=%.wixobj}
fragment.wxs:
Paraffin.exe -dir bin -g -alias bin -custom bin fragment.wxs
%.wixobj : %.wxs
$(CC) $(CFLAGS) $< -o $@
seafile.wixobj : seafile.wxs Includes.wxi
$(CC) $(CFLAGS) $< -o $@
$(TARGET) : $(OBJECTS) $(LANG_FILE)
$(LD) $(LDFLAGS) $(OBJECTS) -o $@
clean :
rm -f $(OBJECTS) *.msi fragment.*
.PHONY: all en de clean
|