source: app/dist/tarball/Makefile @ e1b08a2

help
Last change on this file since e1b08a2 was 25ae32e, checked in by obrebski <obrebski@…>, 17 years ago

git-svn-id: svn://atos.wmid.amu.edu.pl/utt@4 e293616e-ec6a-49c2-aa92-f4a8b91c5d16

  • Property mode set to 100644
File size: 838 bytes
Line 
1# This makefile allows build tarball distribution for utt.
2
3#
4# Some variables
5#
6
7# Directory with utt binaries
8ifndef _UTT_DIST_DIR
9        _UTT_DIST_DIR=${DIR}
10endif
11
12# Where put result
13ifndef _UTT_DIST_OUTPUT
14        _UTT_DIST_OUTPUT=${DIR}
15endif
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
22DIR=$(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
28default:
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.