source:
app/dist/tarball/Makefile
@
6b3be72
Last change on this file since 6b3be72 was b2647de, checked in by pawelk <pawelk@…>, 17 years ago | |
---|---|
|
|
File size: 976 bytes |
Rev | Line | |
---|---|---|
[25ae32e] | 1 | # This makefile allows build tarball distribution for utt. |
2 | ||
3 | # | |
4 | # Some variables | |
5 | # | |
6 | ||
[b2647de] | 7 | DIR=$(shell pwd) |
8 | ||
[25ae32e] | 9 | # Directory with utt binaries |
[b2647de] | 10 | ifndef UTT_DIST_DIR |
11 | UTT_DIST_DIR=${DIR} | |
[25ae32e] | 12 | endif |
13 | ||
14 | # Where put result | |
[b2647de] | 15 | ifndef UTT_DIST_OUTPUT |
16 | UTT_DIST_OUTPUT=${DIR} | |
[25ae32e] | 17 | endif |
18 | ||
19 | # Common info about version and release | |
20 | _UTT_VER=$(shell cat ../common/version.def) | |
21 | _UTT_REL=$(shell cat ../common/release.def) | |
22 | ||
23 | # Temp vars | |
[b2647de] | 24 | _TARBALL_ROOT=$(DIR)/utt-$(_UTT_VER).$(_UTT_REL) |
[25ae32e] | 25 | _TAR_FILE_NAME=utt.$(_UTT_VER)_$(_UTT_REL).tar.gz |
26 | ||
27 | #defualt task | |
28 | .PHONY: default | |
29 | default: | |
[b2647de] | 30 | @echo Build directory: ${UTT_DIST_DIR} |
31 | @echo Output directory for tarball: ${UTT_DIST_OUTPUT} | |
[25ae32e] | 32 | mkdir -p ${_TARBALL_ROOT} |
[b2647de] | 33 | cp -fr ${UTT_DIST_DIR}/* ${_TARBALL_ROOT} |
[25ae32e] | 34 | @# we add some extra files |
[b2647de] | 35 | cp ../common/utt_make_config.pl ${_TARBALL_ROOT}/bin/ |
36 | chmod 755 ${_TARBALL_ROOT}/bin/utt_make_config.pl | |
[25ae32e] | 37 | cp ./INSTALL ${_TARBALL_ROOT}/ |
[b2647de] | 38 | cp ../files/* ${_TARBALL_ROOT}/ |
[25ae32e] | 39 | |
[b2647de] | 40 | tar -czf ${UTT_DIST_OUTPUT}/${_TAR_FILE_NAME} utt* |
[25ae32e] | 41 | |
42 | rm -rf ${_TARBALL_ROOT} | |
[b2647de] | 43 |
Note: See TracBrowser
for help on using the repository browser.