Commit fed43d0e authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

migrated to new scheme

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/libenv201008
SVN Revision: 3162
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 8c841f15
......@@ -50,30 +50,38 @@
# - reorganized installation procedure and
# installation path definitions
# 18/09/2010 V1.3 start migration to SVN scheme
# -
# - check variables
# - copy headers (no symbolic links)
# - new doxygen definitions
# - package creation not yet implemented
#
# ============================================================================
# general part
# ------------
#
all: install doxyfull
all: install doxydoc
install: install-include libgsexx.a
# ============================================================================
# # a variable definition to check variable settings
# # ------------------------------------------------
# a variable definition to check variable settings
# ------------------------------------------------
#
#
CHECKVAR=$(if $($(1)),,$(error ERROR: missing variable $(1)))
CHECKVARS=$(foreach var,$(1),$(call CHECKVAR,$(var)))
#
$(call CHECKVARS,LOCINCLUDEDIR LOCLIBDIR LOCBINDIR)
$(call CHECKVARS,TF_BROWSER TF_WWWBASEDIR)
#----------------------------------------------------------------------
FLAGS=
FLAGS+=$(MYFLAGS)
CXXFLAGS=-Wall $(FLAGS)
LDFLAGS=-L$(LOCLIBDIR)
CPPFLAGS=-I$(LOCINCLUDEDIR) $(FLAGS)
CXXFLAGS+=-Wall $(FLAGS)
LDFLAGS+=-L$(LOCLIBDIR)
CPPFLAGS+=-I$(LOCINCLUDEDIR) $(FLAGS)
flist: Makefile README $(wildcard *.h *.cc *.cfg)
echo $^ | tr ' ' '\n' | sort > $@
......@@ -114,50 +122,60 @@ libgsexx.a: $(patsubst %.cc,%.o,$(LIBSRC)) $(LOCLIBDIR)
/bin/mv -fv $@ $(LOCLIBDIR)
install-include: $(LOCINCLUDEDIR)
ln -sfv $(shell pwd)/gsexx.h $<
/bin/cp -fv gsexx.h $<
#======================================================================
# documentation part
# ------------------
.PHONY: doxyclean doxyview doxyfullconf
#
# targets commonly used:
# ----------------------
#
# make doxyclean removes all documentation
# make doxydoc creates doxygen documentation in the DOXYWWWPATH
# make doxyview creates doxygen documentation and launches netscape to
# browse in the documentation
# make doxyconf edit the doxygen configuration file
#
# If you launch "make doxydoc" the documentation will be written to
# DOXYWWWPATH (see below). This is meant to export the documentation through
# your homepage. The doxyfull directory is just a symbolic link to this
# directory.
#
$(call CHECKVARS,TF_WWWBASEDIR TF_BROWSER)
DOXYWWWPATH=$(TF_WWWBASEDIR)/libgsexx
doxyclean: ;/bin/rm -rfv doc
.PHONY: doxyclean doxyview doxydoc doxyconf
doxyclean: ;/bin/rm -rfv $(DOXYWWWPATH)
DOXYSRC=README $(LIBSRC) $(INCSRC) gsexx_tests.cc gsexx_write_example.cc
doc/%: doxyfull.cfg $(DOXYSRC)
# create doxygen intermediate configuration
doxydoc.xxx: doxydoc.cfg
sed 's,<OUTPUTDIRECTORY>,$(DOXYWWWPATH),g;s,<STRIPFROMPATH>,$(PWD),g' \
$< > $@
$(DOXYWWWPATH)/html/index.html: doxydoc.xxx $(DOXYSRC)
mkdir -vp $(DOXYWWWPATH)
ln -sfv $(DOXYWWWPATH) doc
doxygen $<
doxyfull: doc/html/index.html
doxydoc: doxyfull
doxydoc: $(DOXYWWWPATH)/html/index.html
doxyfullview: doxyfull; $(TF_BROWSER) file:$(DOXYWWWPATH)/html/index.html &
doxyview: doxyfullview
doxyview: $(DOXYWWWPATH)/html/index.html
$(TF_BROWSER) file:$< &
#======================================================================
# create package
# --------------
VERSIONCODE=$(shell date +'%Y%m%d')
PACKAGE=libgsexx$(VERSIONCODE)
PUBLICATIONPATH=$(HOME)/public_html/download/software
TMPPATH=$(HOME)/tmp/$(PACKAGE)
package:
/bin/rm -rfv $(TMPPATH); mkdir -pv $(TMPPATH)
cd $(TMPPATH)/..; cvs export -r HEAD -d $(PACKAGE) thof/src/libs/libgsexx
cd $(TMPPATH)/..; cvs export -r HEAD -d $(PACKAGE) thof/src/LICENSE.GPL
cd $(TMPPATH)/..; cvs export -r HEAD \
-d $(PACKAGE) thof/src/README.compile
cd $(TMPPATH)/..; cvs export -r HEAD \
-d $(PACKAGE) thof/src/README.1st
/bin/bash -c 'cd $(TMPPATH); \
unset LOCINCLUDEDIR; unset LOCLIBDIR; \
make all; make clean; /bin/rm -rfv include lib'
cd $(TMPPATH)/..; tar cvf $(PUBLICATIONPATH)/$(PACKAGE).tar $(PACKAGE)
bzip2 -f $(PUBLICATIONPATH)/$(PACKAGE).tar
cd $(TMPPATH)/..; tar cvf $(PUBLICATIONPATH)/$(PACKAGE).tar $(PACKAGE)
gzip -f -v $(PUBLICATIONPATH)/$(PACKAGE).tar
# is delegated to Makefile.packages
# which still has to be coded
PACKAGE=libaff
#ifdef TF_MAKEPKG
#include $(TF_MAKEPKG)
#endif
#======================================================================
# test code
......
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