help
Line | |
---|
1 | # This makefile builds tarball distribution for utt dictionary. |
---|
2 | |
---|
3 | # |
---|
4 | # Some variables |
---|
5 | # |
---|
6 | DIR=$(shell pwd) |
---|
7 | |
---|
8 | # Common info about version and release |
---|
9 | _UTT_VER=$(shell cat ../../../app/dist/common/version.def) |
---|
10 | _UTT_REL=$(shell cat ../../../app/dist/common/release.def) |
---|
11 | |
---|
12 | # Temp vars |
---|
13 | _TARBALL_ROOT=$(DIR)/utt-$(_UTT_VER).$(_UTT_REL) |
---|
14 | _TAR_FILE_NAME=utt.dic.$(_UTT_VER)_$(_UTT_REL) |
---|
15 | |
---|
16 | #defualt task |
---|
17 | .PHONY: default |
---|
18 | default: |
---|
19 | @echo Build directory: ${UTT_DIC_BIN} |
---|
20 | @echo Output directory for tarball: ${UTT_DIC_OUTPUT} |
---|
21 | mkdir -p ${_TARBALL_ROOT} |
---|
22 | if test -n "${DIC_LANG}" -a -d ${UTT_DIC_BIN}/${DIC_LANG} ; \ |
---|
23 | then \ |
---|
24 | echo "Tworze dystrybucje ${DIC_LANG}"; \ |
---|
25 | mkdir -p ${_TARBALL_ROOT}/${DIC_LANG}; \ |
---|
26 | cp -fr ${UTT_DIC_BIN}/${DIC_LANG}/* ${_TARBALL_ROOT}/${DIC_LANG}/; \ |
---|
27 | cp -fr ${UTT_DIC_CONF_HOME}/${DIC_LANG}/* ${_TARBALL_ROOT}/${DIC_LANG}/; \ |
---|
28 | rm -rf ${_TARBALL_ROOT}/${DIC_LANG}/.svn ; \ |
---|
29 | tar -czf ${UTT_DIC_OUTPUT}/${_TAR_FILE_NAME}.${DIC_LANG}.tar.gz utt*; \ |
---|
30 | else \ |
---|
31 | echo "Tworze pelna dystrybucje!"; \ |
---|
32 | cp -fr ${UTT_DIC_BIN}/* ${_TARBALL_ROOT}/; \ |
---|
33 | cp -fr ${UTT_DIC_CONF_HOME}/* ${_TARBALL_ROOT}/; \ |
---|
34 | find ${_TARBALL_ROOT} -name .svn -exec rm -rf {} \; ; \ |
---|
35 | tar -czf ${UTT_DIC_OUTPUT}/${_TAR_FILE_NAME}.all.tar.gz utt*; \ |
---|
36 | fi |
---|
37 | |
---|
38 | rm -rf ${_TARBALL_ROOT} |
---|
39 | |
---|
Note: See
TracBrowser
for help on using the repository browser.