Skip to content

Commit

Permalink
made the makefile executable from other directories
Browse files Browse the repository at this point in the history
  • Loading branch information
omorandi committed Feb 10, 2012
1 parent 50c6f57 commit 997d49d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Expand Up @@ -14,6 +14,9 @@ BUILD_TYPE=$(build_type)

DEVICE_TYPE=$(platform)

MAKETI_DIR=$(dir $(lastword $(MAKEFILE_LIST)))


help:
@echo ""
@echo "**************************************************************"
Expand Down Expand Up @@ -41,7 +44,7 @@ run:
@echo "Building with Titanium... as ${BUILD_TYPE}"
@mkdir -p '${PROJECT_ROOT}/${PROJECT_NAME}/build/iphone/'
@mkdir -p '${PROJECT_ROOT}/${PROJECT_NAME}/build/android/'
PROJECT_ROOT='${PROJECT_ROOT}' DEVICE_TYPE=${DEVICE_TYPE} bash '${PROJECT_ROOT}/bin/titanium.sh'
PROJECT_ROOT='${PROJECT_ROOT}' DEVICE_TYPE=${DEVICE_TYPE} bash '${MAKETI_DIR}/bin/titanium.sh'

deploy:
@if [ "${DEVICE_TYPE}" == "" ]; then\
Expand Down

0 comments on commit 997d49d

Please sign in to comment.