1 TARGET_DIST_NAME
= XCSoar-
$(FULL_VERSION
)-$(TARGET
)
2 TARGET_DIST_DIR
= $(TARGET_OUTPUT_DIR
)/dist
4 THIRDPARTY_DLL_DIR
= $(TARGET_OUTPUT_DIR
)/dll
8 rm -rf
$(TARGET_DIST_DIR
)/$(TARGET_DIST_NAME
)
9 $(MKDIR
) -p
$(TARGET_DIST_DIR
)/$(TARGET_DIST_NAME
)
10 cp
$(OUTPUTS
) gpl.txt installmsg.txt \
11 $(addprefix $(THIRDPARTY_DLL_DIR
)/,$(THIRDPARTY_DLLS
)) \
12 $(TARGET_DIST_DIR
)/$(TARGET_DIST_NAME
)/
13 cd
$(TARGET_DIST_DIR
) && zip
-qr
$(TARGET_DIST_NAME
).zip
$(TARGET_DIST_NAME
)
14 mv
$(TARGET_DIST_DIR
)/$(TARGET_DIST_NAME
).zip
$(OUT
)/
16 ifeq ($(TARGET
),ALTAIR
)
17 # Build a ZIP file to be unpacked on a USB stick. The Altair will
18 # automatically pick up the EXE file with the "magic" file name
19 $(TARGET_OUTPUT_DIR
)/XCSoarAltair.zip
: $(TARGET_BIN_DIR
)/XCSoar.exe
21 $(MKDIR
) -p
$(@D
)/ToAltair
23 upx
--best
$(@D
)/ToAltair
/XCSoar.exe
24 mv
$(@D
)/ToAltair
/XCSoar.exe
$(@D
)/ToAltair
/XCSoarAltair-600-CRC3E.exe
25 cd
$(@D
) && zip
-r
-Z store
$(@F
) ToAltair