Commit 315d3248 authored by Carles Pina i Estany's avatar Carles Pina i Estany

Fixes Makefile syntax, makes it specific for OSX. Exports new variable.

parent 93b45bb4
......@@ -23,9 +23,14 @@ ChangeLog:
dist: ChangeLog
if OSTYPE_OS_X
export CHRONOJUMP_VERSION = @PACKAGE_VERSION@
export CHRONOJUMP_COMMIT = origin/@GIT_BRANCH@
CERBERO_COMMAND = /Users/chronojump/cerbero/cerbero-uninstalled -c /Users/chronojump/cerbero/cerbero-extras/chronojump.cbc
osx-package:
export CHRONOJUMP_VERSION="@PACKAGE_VERSION@"
cerbero-cj buildone chronojump
cerbero-cj package chronojump
$(CERBERO_COMMAND) buildone chronojump
$(CERBERO_COMMAND) package chronojump
endif
.PHONY: ChangeLog
......@@ -10,6 +10,10 @@ AC_SUBST([PACKAGE_SIMPLIFIED_VERSION], [m4_esyscmd_s([git describe --abbrev=0])]
# Date of the last commit
AC_SUBST([BUILD_CHRONOJUMP_LAST_COMMIT_TIMESTAMP], [m4_esyscmd_s([git log -1 --format=%ct])])
# GIT_BRANCH is used by cerbero to know which branch needs to be build (on OSX)
AC_SUBST([GIT_BRANCH], [m4_esyscmd_s([git symbolic-ref --short HEAD])])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_MACRO_DIR([build/m4])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment