Commit ec6064ab authored by Daniel Armbruster's avatar Daniel Armbruster Committed by thomas.forbriger
Browse files

added suggestions of Thomas

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.

SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/branches/any2matlab0.4
SVN Revision: 3902
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 2b3f374f
......@@ -18,24 +18,34 @@
# ----
# Daniel Armbruster 30/09/2010
#
# compile mex files
#
# REVISIONS and CHANGES
# 15/07/2010 V1.0 Thomas Forbriger & Daniel Armbruster
# 30/09/2010 V1.1 make code functional in new repository
# 13/10/2010 V1.2 - check environment variables
# - deploy doxygen output as a copy
# - use configurable path in doxygen output
# - changed doxygen path name to any2matlab, since I
# expect more mex programs to contribute documentation
# in the future
# 29/04/2011 V1.3 - provides now the build of an any2matlab package
#
# 15/07/2010 V1.0 Thomas Forbriger & Daniel Armbruster
# 30/09/2010 V1.1 make code functional in new repository
# 13/10/2010 V1.2 - check environment variables
# - deploy doxygen output as a copy
# - use configurable path in doxygen output
# - changed doxygen path name to any2matlab, since I
# expect more mex programs to contribute
# documentation in the future
# 05/05/2011 V1.3 - provides now the build of an any2matlab package
# with src/pakete/Makefile.packages
#
# ----------------------------------------------------------------------------
# Usage:
#
# make all creates the documentation and the any2matlab binary
#
# make install builds the any2matlab binary
#
# make package builds a full package of any2matlab with all library
# dependencies and including documentation to distribute
#
# ============================================================================
#
all: any2matlab doxydoc
install: any2matlab
package: fullpackage
CHECKVAR=$(if $($(1)),,$(error ERROR: missing variable $(1)))
CHECKVARS=$(foreach var,$(1),$(call CHECKVAR,$(var)))
......@@ -67,7 +77,7 @@ clean:
#======================================================================
# installation part
# # ------------------
# ------------------
# depends on operating system $(OS)
.PHONY: any2matlab
any2matlab: any2matlab.cc
......@@ -120,4 +130,19 @@ doxydoc: $(DOXYWWWPATH)/html/index.html
doxyfullview doxyview: $(DOXYWWWPATH)/html/index.html
$(TF_BROWSER) file:$< &
#======================================================================
# create package
# --------------
# is delegated to Makefile.packages
ifdef TF_MAKEPKG
.PHONY: fullpackage
fullpackage: $(TF_MAKEPKG)
$(MAKE) -f $< \
PACKAGE=any2matlab \
PACKAGEEXPORT="branches/any2matlab0.4/src/matlab/any2matlab:src " \
PACKAGEEXPORT+="branches/any2matlab0.4/src/matlab/any2matlab/README.install:README.any2matlab " \
PACKAGETARGETS="src:all src/texts/installDoc:pdf:" \
PACKAGELIBS="libaff:libtime:libsffxx:libgsexx:libdatrwxx"
endif
# ----- END OF Makefile -----
# this is <Makefile.package>
# ----------------------------------------------------------------------------
# $Id: $
# Copyright (c) 2011 by Daniel Armbruster
# ----
# This program 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
# (at your option) any later version.
#
# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
# ----
# Daniel Armbruster 29/04/2011
#
# REVISIONS and CHANGES
# 29/04/2011 V1.0 Daniel Armbruster
# ----------------------------------------------------------------------------
#
# Makefile which provides building a any2matlab package.
#
# USAGE:
# - make -f Makefile.package fullpackage
# Rule to create a full any2matlab package.
#
# ----------------------------------------------------------------------------
CHECKVAR=$(if $($(1)),,$(error ERROR: missing variable $(1)))
CHECKVARS=$(foreach var,$(1),$(call CHECKVAR,$(var)))
$(call CHECKVARS,LOCINCLUDEDIR LOCLIBDIR LOCBINDIR)
#======================================================================
# create package
# --------------
# is delegated to Makefile.packages
ifdef TF_MAKEPKG
.PHONY: fullpackage
fullpackage: $(TF_MAKEPKG)
$(MAKE) -f $< \
PACKAGE=any2matlab \
PACKAGEEXPORT="branches/any2matlab0.4/src/matlab/any2matlab:src " \
PACKAGEEXPORT+="branches/any2matlab0.4/src/matlab/any2matlab/README.install:README.any2matlab " \
PACKAGETARGETS="src:all" \
PACKAGELIBS="libaff:libtime:libsffxx:libgsexx:libdatrwxx"
endif
# ----- END OF Makefile.package -----
......@@ -205,7 +205,7 @@ repository. Generally the path should be
\texttt{<path to working copy>/src/matlab/any2matlab}
Next be sure that your environment variables are set properly in your
\texttt{$\sim$/.TFbashrc} file. Check the content of
\texttt{$\sim$/.TFbashrc} file. Check the values of
\begin{itemize}
\item \texttt{\$SVNTF}
......@@ -214,11 +214,11 @@ Next be sure that your environment variables are set properly in your
\end{itemize}
Be aware, that all necessary programs are installed as \texttt{f2c},
\texttt{doxygen}, \texttt{finger} etc.
\texttt{doxygen} etc.
Now you are ready to build a package with the command
\smallskip
\texttt{make -f Makefile.package fullpackage}
\texttt{make package}
The package files you will find in your \texttt{\$TF\_PUBLICATIONPATH}.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment