NEWS: prepare for 6.6.1
[xcsoar.git] / build / dist.mk
blob1fa6161dd4fdc3192e9b5167b3fe2ff858540508
1 TARGET_DIST_NAME = XCSoar-$(FULL_VERSION)-$(TARGET)
2 TARGET_DIST_DIR = $(TARGET_OUTPUT_DIR)/dist
4 THIRDPARTY_DLL_DIR = $(TARGET_OUTPUT_DIR)/dll
5 THIRDPARTY_DLLS =
7 dist: $(OUTPUTS)
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
20 rm -rf $(@D)/ToAltair
21 $(MKDIR) -p $(@D)/ToAltair
22 cp $< $(@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
26 endif