utt/lang/dist/tarball/Makefile
obrebski e28a625259 Ta linia i następne zostaną zignorowane--
M    app/dist/files/README
	uaktualnione
M    app/doc/utt.texinfo
	dopiski
M    app/src/gue/Makefile
	statyczne biblioteki
M    app/src/cor/cmdline_cor.ggo
	usuniecie nie dzialajacych parametrow
M    app/src/cor/Makefile
	statyczne biblioteki
M    app/src/common/cmdline_common.ggo
	?
M    app/src/kor/Makefile
	statyczne biblioteki
M    app/src/lem/Makefile
	statyczne biblioteki
M    lang/dist/tarball/Makefile
	pakowanie modulow jezykowych po jednym
M    lang/Makefile
	-"-



git-svn-id: svn://atos.wmid.amu.edu.pl/utt@61 e293616e-ec6a-49c2-aa92-f4a8b91c5d16
2008-10-29 10:17:16 +00:00

42 lines
1.4 KiB
Makefile

# This makefile builds tarball distribution for utt dictionary.
#
# Some variables
#
DIR=$(shell pwd)
# Common info about version and release
_UTT_VER=$(shell cat ../../../app/dist/common/version.def)
_UTT_REL=$(shell cat ../../../app/dist/common/release.def)
# Temp vars
_TARBALL_ROOT=$(DIR)/utt-$(_UTT_VER).$(_UTT_REL)
_UTT_DIC_HOME=share/utt
_TAR_FILE_NAME=utt.$(_UTT_VER)_$(_UTT_REL)
#defualt task
.PHONY: default
default:
@echo Build directory: ${UTT_DIC_BIN}
@echo Output directory for tarball: ${UTT_DIC_OUTPUT}
mkdir -p ${_TARBALL_ROOT}/${_UTT_DIC_HOME}
if [[ -n "${DIC_LANG}" && -d ${UTT_DIC_BIN}/${DIC_LANG} ]]; \
then \
echo "Tworze dystrybucje ${DIC_LANG}"; \
mkdir -p ${_TARBALL_ROOT}/${_UTT_DIC_HOME}/${DIC_LANG}; \
cp -fr ${UTT_DIC_BIN}/${DIC_LANG}/* ${_TARBALL_ROOT}/${_UTT_DIC_HOME}/${DIC_LANG}/; \
cp -fr ${UTT_DIC_CONF_HOME}/${DIC_LANG}/* ${_TARBALL_ROOT}/${_UTT_DIC_HOME}/${DIC_LANG}/; \
rm -rf ${_TARBALL_ROOT}/${_UTT_DIC_HOME}/${DIC_LANG}/.svn ; \
tar -czf ${UTT_DIC_OUTPUT}/${_TAR_FILE_NAME}.${DIC_LANG}.tar.gz utt*; \
else \
echo "Tworze pelna dystrybucje!"; \
cp -fr ${UTT_DIC_BIN}/* ${_TARBALL_ROOT}/${_UTT_DIC_HOME}/; \
cp -fr ${UTT_DIC_CONF_HOME}/* ${_TARBALL_ROOT}/${_UTT_DIC_HOME}/; \
find ${_TARBALL_ROOT}/${_UTT_DIC_HOME} -type d -path '*/.svn' -exec rm -rf {} \; ; \
tar -czf ${UTT_DIC_OUTPUT}/${_TAR_FILE_NAME}.all.tar.gz utt*; \
fi
rm -rf ${_TARBALL_ROOT}