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
|
|
|
|
2011-05-22 12:28:04 +02:00
|
|
|
package: gcs release_flight
|
|
|
|
mkdir -p "$(dir $(NSIS_HEADER))"
|
|
|
|
$(VERSION_CMD) --template="$(NSIS_TEMPLATE)" --outfile="$(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-22 11:00:49 +02:00
|
|
|
ground_package: | package
|
2011-05-13 16:40:28 +02:00
|
|
|
|
2011-05-22 11:00:49 +02:00
|
|
|
.PHONY: gcs ground_package package
|