Last change
on this file since abd28d1 was
5f4d9c3,
checked in by Maciej Prill <mprill@…>, 13 years ago
|
Rewritten the build system, added lem UTF-8 version.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[5f4d9c3] | 1 | # This makefile allows build tarball distribution for utt. |
---|
| 2 | |
---|
| 3 | # |
---|
| 4 | # Some variables |
---|
| 5 | # |
---|
| 6 | |
---|
| 7 | DIR=$(shell pwd) |
---|
| 8 | |
---|
| 9 | # Directory with utt binaries |
---|
| 10 | ifndef UTT_DIST_DIR |
---|
| 11 | UTT_DIST_DIR=${DIR} |
---|
| 12 | endif |
---|
| 13 | |
---|
| 14 | # Where put result |
---|
| 15 | ifndef UTT_DIST_OUTPUT |
---|
| 16 | UTT_DIST_OUTPUT=${DIR} |
---|
| 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 |
---|
| 24 | _TARBALL_ROOT=$(DIR)/utt-$(_UTT_VER).$(_UTT_REL) |
---|
| 25 | _TAR_FILE_NAME=utt.$(_UTT_VER)_$(_UTT_REL).tar.gz |
---|
| 26 | |
---|
| 27 | #defualt task |
---|
| 28 | .PHONY: default |
---|
| 29 | default: |
---|
| 30 | @echo Build directory: ${UTT_DIST_DIR} |
---|
| 31 | @echo Output directory for tarball: ${UTT_DIST_OUTPUT} |
---|
| 32 | mkdir -p ${_TARBALL_ROOT} |
---|
| 33 | cp -fr ${UTT_DIST_DIR}/* ${_TARBALL_ROOT} |
---|
| 34 | @# we add some extra files |
---|
| 35 | @# config files |
---|
| 36 | mkdir -p ${_TARBALL_ROOT}/cnf |
---|
| 37 | mv ${_TARBALL_ROOT}/etc/utt/*.conf ${_TARBALL_ROOT}/cnf/ |
---|
| 38 | ${DIR}/../common/prepare_conf.sh ${_TARBALL_ROOT}/cnf ${_TARBALL_ROOT}/etc/utt \~\\\/.local |
---|
| 39 | rm -rf ${_TARBALL_ROOT}/cnf |
---|
| 40 | cp ./INSTALL ${_TARBALL_ROOT}/ |
---|
| 41 | cp ./Makefile.tarball ${_TARBALL_ROOT}/Makefile |
---|
| 42 | cp ../files/* ${_TARBALL_ROOT}/ |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | tar -czf ${UTT_DIST_OUTPUT}/${_TAR_FILE_NAME} utt* |
---|
| 46 | |
---|
| 47 | rm -rf ${_TARBALL_ROOT} |
---|
| 48 | |
---|
Note: See
TracBrowser
for help on using the repository browser.