TriloBot Simulator (C++, Qt4, Flex, Readline, Boost)
File detail
Source code
# Copyright (C) 2008 Kamil Dudka <xdudka00@stud.fit.vutbr.cz>
#
# This file is part of rob08
#
# rob08 is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# rob08 is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with rob08. If not, see <http://www.gnu.org/licenses/>.
TAR?=tar
CMAKE?=cmake
ROB_RELEASE=rob08
ROB_DOC=dokumentace
ROB_RELEASE_DOC=$(ROB_RELEASE)/$(ROB_DOC).pdf
ROB_RELEASE_TGZ=$(ROB_RELEASE).tar.gz
ROB_RELEASE_CONTENT=COPYING demo.sh doc Makefile README redirCOM1.sh src \
terminal.sh tg.sh THANKS TODO
.PHONY: all build build_all build_dir check clean release distclean doc
all: build_dir
$(MAKE) all -C build
check: all
$(MAKE) test -C build
build_dir:
test -d build || mkdir build
cd build && $(CMAKE) ../src
clean:
rm -rfv build
distclean: clean
#$(MAKE) -C doc clean
rm -rfv $(ROB_RELEASE)
rm -fv $(ROB_RELEASE_TGZ)
release: distclean
$(MAKE) all
#mv -vT doc/tex/vyp08.pdf ./vyp08.pdf
$(MAKE) distclean
mkdir $(ROB_RELEASE)
#mv -vT ./vyp08.pdf $(ROB_RELEASE_DOC)
cp -vR -t $(ROB_RELEASE) $(ROB_RELEASE_CONTENT)
$(TAR) cfzv $(ROB_RELEASE_TGZ) $(ROB_RELEASE)