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

migrated to new SVN 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: 3174
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent ab299618
......@@ -27,12 +27,21 @@
# 14/11/2002 V1.1 place docu on the WWW
# 28/12/2008 v1.2 reorganized Makefile and provide separate
# subdirectory for header files
# 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
# - set TF_REMCMMNT to cat if not defined
#
# ============================================================================
#
all: install example doxydoc
install: install-include libpgplotCpp.a
PGPLOTLIB=-lpgplotCpp -lcpgplot \
-l$(TF_g77_PGPLOT) $(TF_LINK_PGPLOT) $(TF_LINK_FORTRAN) \
$(TF_LINK_PGPLOT) \
-L$(LOCLIBDIR)
# root headers are those that must be installed in the root of the include
......@@ -60,8 +69,9 @@ EMPTYPRINT=1
#EMPTYPRINT=0
# define this to be cat in case you do not have remcmmnt available
REMCMMNT=remcmmnt
#REMCMMNT=cat
ifndef TF_REMCMMNT
TF_REMCMMNT=cat
endif
FLAGS=$(MYFLAGS)
CXXFLAGS=-fhonor-std -Wall $(FLAGS)
......@@ -70,9 +80,6 @@ LDFLAGS=-L$(LOCLIBDIR)
#CPPFLAGS=-I$(LOCINCLUDEDIR) $(FLAGS) -I$(BLITZINCLUDE)
CPPFLAGS=-I$(LOCINCLUDEDIR) -I$(SERVERINCLUDEDIR) $(FLAGS)
all: install example doxyfull
install: install-include libpgplotCpp.a
flist: Makefile $(HEADERS) $(SRC) doxygen.cfg $(EXSRC)
echo $^ | tr ' ' '\n' | sort > $@
......@@ -123,7 +130,7 @@ libpgplotCpp.a: $(SRC:.cc=.o)
awk 'BEGIN {hot=1;} /^ \*\// { if (hot) { hot=2; print; next;} }\
/^#/ { hot=0; } \
{ if (hot==2) { print ""; } else if (hot) { print; } }' $< > $@
$(REMCMMNT) $< | awk 'BEGIN {hot=0;} \
$(TF_REMCMMNT) $< | awk 'BEGIN {hot=0;} \
/^ *$$/ { if ((hot) && ($(EMPTYPRINT))) { print; } next; } \
/^#/ { hot=1; } { if (hot) print; }' >> $@
......@@ -132,12 +139,12 @@ libpgplotCpp.a: $(SRC:.cc=.o)
$(INCINSTALLPATH)/%.h: %.h.strip
mkdir -p $(INCINSTALLPATH)
-rm -fv $@
ln -svf $$(pwd)/$< $@
/bin/cp -vpd $< $@
$(ROOTINCINSTALLPATH)/%.h: %.h.strip
mkdir -p $(ROOTINCINSTALLPATH)
-rm -fv $@
ln -svf $$(pwd)/$< $@
/bin/cp -vpd $< $@
install-include: $(INSTHEADER) $(INSTROOTHEADER)
echo $^
......@@ -157,28 +164,56 @@ example: install XpgplotCpp; XpgplotCpp; rm -fv XpgplotCpp XpgplotCpp.o
#======================================================================
# documentation part
# ------------------
DOXYWWWPATH=$(WWWBASEDIR)/libpgplotxx
.PHONY: doxyclean doxyview doxybriefview doxyfullconf doxybriefconf
#
# 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)/libpgplotxx
.PHONY: doxyclean doxyview doxydoc doxyconf
doxyclean: ;/bin/rm -rfv doc docbrief
doxyclean: ;/bin/rm -rfv $(DOXYWWWPATH)
DOXYSRC=$(CODE) $(HEADERS)
doc/html/index.html: doxygen.cfg doxyclean $(DOXYSRC)
mkdir -p $(DOXYWWWPATH)
/bin/rm -rfv doc/*
/bin/rm -rfv doc
ln -sfv $(DOXYWWWPATH) doc
doxygen $<
# create doxygen intermediate configuration
PWD=$(shell env pwd)
doxydoc.xxx: doxydoc.cfg
sed 's,<OUTPUTDIRECTORY>,$(DOXYWWWPATH),g;s,<STRIPFROMPATH>,$(PWD),g' \
$< > $@
doxyconf: ;doxywizard doxygen.cfg
$(DOXYWWWPATH)/html/index.html: doxydoc.xxx $(DOXYSRC)
mkdir -vp $(DOXYWWWPATH)
doxygen $<
doxyfull: doc/html/index.html
doxydoc: doxyclean doxyfull
doxydoc: $(DOXYWWWPATH)/html/index.html
doxyview: doxyfull; $(TF_BROWSER) doc/html/index.html &
doxyview: $(DOXYWWWPATH)/html/index.html
$(TF_BROWSER) file:$< &
install-man: doxydoc; newman $$(find doc/man -type f)
#======================================================================
# create package
# --------------
# is delegated to Makefile.packages
# which still has to be coded
PACKAGE=libpgplotxx
#ifdef TF_MAKEPKG
#include $(TF_MAKEPKG)
#endif
#
# ----- END OF Makefile -----
......@@ -9,6 +9,8 @@
# For lists items can also be appended using:
# TAG += value [value, ...]
# Values that contain spaces should be placed between quotes (" ")
#
# $Id$
#---------------------------------------------------------------------------
# General configuration options
......@@ -30,7 +32,7 @@ PROJECT_NUMBER =
# If a relative path is entered, it will be relative to the location
# where doxygen was started. If left blank the current directory will be used.
OUTPUT_DIRECTORY = doc
OUTPUT_DIRECTORY = <OUTPUTDIRECTORY>
# The OUTPUT_LANGUAGE tag is used to specify the language in which all
# documentation generated by doxygen is written. Doxygen will use this
......@@ -143,8 +145,7 @@ FULL_PATH_NAMES = YES
# only done if one of the specified strings matches the left-hand part of
# the path. It is allowed to use relative paths in the argument list.
STRIP_FROM_PATH = /home/theo1/forbrig/work/src/class/ \
/home/forbrig/work/src/class
STRIP_FROM_PATH = <STRIPFROMPATH>
# The INTERNAL_DOCS tag determines if documentation
# that is typed after a \internal command is included. If the tag is set
......@@ -193,7 +194,7 @@ JAVADOC_AUTOBRIEF = YES
# The new default is to treat a multi-line C++ comment block as a detailed
# description. Set this tag to YES if you prefer the old behaviour instead.
MULTILINE_CPP_IS_BRIEF = NO
MULTILINE_CPP_IS_BRIEF = YES
# If the DETAILS_AT_TOP tag is set to YES then Doxygen
# will output the detailed description near the top, like JavaDoc.
......@@ -225,7 +226,7 @@ SORT_MEMBER_DOCS = YES
# member in the group (if any) for the other members of the group. By default
# all members of a group must be documented explicitly.
DISTRIBUTE_GROUP_DOC = NO
DISTRIBUTE_GROUP_DOC = YES
# The TAB_SIZE tag can be used to set the number of spaces in a tab.
# Doxygen uses this value to replace tabs by spaces in code fragments.
......@@ -268,7 +269,7 @@ ALIASES =
# The ENABLED_SECTIONS tag can be used to enable conditional
# documentation sections, marked by \if sectionname ... \endif.
ENABLED_SECTIONS =
ENABLED_SECTIONS = internal
# The MAX_INITIALIZER_LINES tag determines the maximum number of lines
# the initial value of a variable or define consists of for it to appear in
......@@ -359,10 +360,10 @@ INPUT = ./
# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx *.hpp
# *.h++ *.idl *.odl *.cs
FILE_PATTERNS = *.h \
*.cc \
README \
README.doxy
FILE_PATTERNS = README \
README.changelog \
*.h \
*.cc
# The RECURSIVE tag can be used to turn specify whether or not subdirectories
# should be searched for input files as well. Possible values are YES and NO.
......@@ -385,13 +386,13 @@ EXCLUDE_SYMLINKS = NO
# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
# certain files from those directories.
EXCLUDE_PATTERNS = docxx.h
EXCLUDE_PATTERNS =
# The EXAMPLE_PATH tag can be used to specify one or more files or
# directories that contain example code fragments that are included (see
# the \include command).
EXAMPLE_PATH = pgtestxx.cc XpgplotCpp.cc
EXAMPLE_PATH = tests
# If the value of the EXAMPLE_PATH tag contains directories, you can use the
# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
......@@ -654,7 +655,7 @@ LATEX_HEADER =
# contain links (just like the HTML output) instead of page references
# This makes the output suitable for online browsing using a pdf viewer.
PDF_HYPERLINKS = YES
PDF_HYPERLINKS = NO
# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of
# plain latex in the generated Makefile. Set this option to YES to get a
......@@ -683,7 +684,7 @@ LATEX_HIDE_INDICES = NO
# The RTF output is optimised for Word 97 and may not look very pretty with
# other RTF readers or editors.
GENERATE_RTF = NO
GENERATE_RTF = YES
# The RTF_OUTPUT tag is used to specify where the RTF docs will be put.
# If a relative path is entered the value of OUTPUT_DIRECTORY will be
......@@ -867,7 +868,7 @@ INCLUDE_FILE_PATTERNS =
# or name=definition (no spaces). If the definition and the = are
# omitted =1 is assumed.
PREDEFINED =
PREDEFINED = DOXYGEN_MUST_SKIP_THIS
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
# this tag can be used to specify a list of macro names that should be expanded.
......
Supports Markdown
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