2011-05-28 03:14:51 +03:00
|
|
|
#
|
2013-03-21 23:11:30 +02:00
|
|
|
# MacOSX-specific packaging script
|
2011-05-28 03:14:51 +03:00
|
|
|
#
|
|
|
|
|
2013-03-21 23:11:30 +02:00
|
|
|
ifndef OPENPILOT_IS_COOL
|
|
|
|
$(error Top level Makefile must be used to build this target)
|
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: package
|
2015-03-18 10:18:04 +13:00
|
|
|
package: openpilotgcs uavobjects_matlab | $(PACKAGE_DIR)
|
2015-03-17 21:15:44 +13:00
|
|
|
ifneq ($(GCS_BUILD_CONF),release)
|
|
|
|
# We can only package release builds
|
|
|
|
$(error Packaging is currently supported for release builds only)
|
|
|
|
endif
|
2011-05-28 03:14:51 +03:00
|
|
|
( \
|
|
|
|
ROOT_DIR="$(ROOT_DIR)" \
|
|
|
|
BUILD_DIR="$(BUILD_DIR)" \
|
|
|
|
PACKAGE_LBL="$(PACKAGE_LBL)" \
|
|
|
|
PACKAGE_DIR="$(PACKAGE_DIR)" \
|
2012-12-11 03:07:51 +02:00
|
|
|
PACKAGE_NAME="$(PACKAGE_NAME)" \
|
|
|
|
PACKAGE_SEP="$(PACKAGE_SEP)" \
|
2011-05-28 03:14:51 +03:00
|
|
|
"$(ROOT_DIR)/package/osx/package" \
|
|
|
|
)
|