1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-05 13:24:11 +01:00
LibrePilot/package/Darwin.mk
2016-01-29 19:03:50 +01:00

28 lines
740 B
Makefile

#
# MacOSX-specific packaging script
#
ifndef TOP_LEVEL_MAKEFILE
$(error Top level Makefile must be used to build this target)
endif
.PHONY: package
package: gcs uavobjects_matlab | $(PACKAGE_DIR)
ifneq ($(GCS_BUILD_CONF),release)
# We can only package release builds
$(error Packaging is currently supported for release builds only)
endif
( \
ROOT_DIR="$(ROOT_DIR)" \
BUILD_DIR="$(BUILD_DIR)" \
GCS_BIG_NAME="$(GCS_BIG_NAME)" \
GCS_SMALL_NAME="$(GCS_SMALL_NAME)" \
WIKI_URL_ROOT="${WIKI_URL_ROOT}" \
PACKAGE_LBL="$(PACKAGE_LBL)" \
PACKAGE_DIR="$(PACKAGE_DIR)" \
PACKAGE_NAME="$(PACKAGE_NAME)" \
PACKAGE_SEP="$(PACKAGE_SEP)" \
QT_DIR="$(QT_SDK_PREFIX)/lib" \
"$(ROOT_DIR)/package/osx/package" \
)