help
Line | |
---|
1 | # This makefile allows build tarball distribution for utt. |
---|
2 | |
---|
3 | # |
---|
4 | # Some variables |
---|
5 | # |
---|
6 | |
---|
7 | # Directory with utt binaries |
---|
8 | ifndef _UTT_DIST_DIR |
---|
9 | _UTT_DIST_DIR=${DIR} |
---|
10 | endif |
---|
11 | |
---|
12 | # Where put result |
---|
13 | ifndef _UTT_DIST_OUTPUT |
---|
14 | _UTT_DIST_OUTPUT=${DIR} |
---|
15 | endif |
---|
16 | |
---|
17 | # Common info about version and release |
---|
18 | _UTT_VER=$(shell cat ../common/version.def) |
---|
19 | _UTT_REL=$(shell cat ../common/release.def) |
---|
20 | |
---|
21 | # Temp vars |
---|
22 | DIR=$(shell pwd) |
---|
23 | _TARBALL_ROOT=$(DIR)/utt_$(_UTT_VER)-$(_UTT_REL) |
---|
24 | _TAR_FILE_NAME=utt.$(_UTT_VER)_$(_UTT_REL).tar.gz |
---|
25 | |
---|
26 | #defualt task |
---|
27 | .PHONY: default |
---|
28 | default: |
---|
29 | @echo Build dir is ${_UTT_DIST_DIR} |
---|
30 | @echo Change output for tarball as ${_UTT_DIST_OUTPUT} |
---|
31 | mkdir -p ${_TARBALL_ROOT} |
---|
32 | cp -fr ${_UTT_DIST_DIR}/* ${_TARBALL_ROOT} |
---|
33 | @# we add some extra files |
---|
34 | cp ./INSTALL ${_TARBALL_ROOT}/ |
---|
35 | |
---|
36 | tar -czf ${_UTT_DIST_OUTPUT}/${_TAR_FILE_NAME} utt* |
---|
37 | |
---|
38 | rm -rf ${_TARBALL_ROOT} |
---|
Note: See
TracBrowser
for help on using the repository browser.