2011-05-13 16:40:28 +02:00
|
|
|
#
|
|
|
|
# Windows-specific packaging
|
|
|
|
#
|
|
|
|
|
2011-05-19 00:05:12 +02:00
|
|
|
NSIS_CMD := makensis.exe
|
|
|
|
NSIS_OPTS := /V3
|
|
|
|
NSIS_DIR := $(ROOT_DIR)/release/winx86
|
|
|
|
NSIS_SCRIPT := $(NSIS_DIR)/openpilotgcs.nsi
|
|
|
|
NSIS_TEMPLATE := $(NSIS_DIR)/openpilotgcs.tpl
|
2011-05-19 12:08:54 +02:00
|
|
|
NSIS_HEADER := $(BUILD_DIR)/ground/openpilotgcs/openpilotgcs.nsh
|
2011-05-19 00:05:12 +02:00
|
|
|
|
|
|
|
$(NSIS_HEADER): $(NSIS_TEMPLATE)
|
|
|
|
$(V0) @echo " PY $@"
|
2011-05-19 01:33:15 +02:00
|
|
|
$(V1) mkdir -p "$(dir $@)"
|
2011-05-19 00:05:12 +02:00
|
|
|
$(V1) $(VERSION_CMD) --template="$<" --outfile="$@"
|
|
|
|
|
2011-05-19 01:33:15 +02:00
|
|
|
nsis: gcs release_flight $(NSIS_HEADER)
|
2011-05-19 00:05:12 +02:00
|
|
|
$(NSIS_CMD) $(NSIS_OPTS) $(NSIS_SCRIPT)
|
|
|
|
|
2011-05-18 21:22:40 +02:00
|
|
|
gcs: uavobjects
|
2011-05-13 16:40:28 +02:00
|
|
|
$(V1) $(MAKE) -C $(ROOT_DIR) GCS_BUILD_CONF=release $@
|
|
|
|
|
2011-05-19 00:05:12 +02:00
|
|
|
ground_package: | nsis
|
2011-05-13 16:40:28 +02:00
|
|
|
|
2011-05-19 00:05:12 +02:00
|
|
|
.PHONY: nsis gcs ground_package
|