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

improved install target definition

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.
provide reinstall target in subdirectory cxx


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 3685
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent df247da7
......@@ -47,19 +47,23 @@
# 17/11/2010 V1.3 migrated to SVN scheme; avoid incdep
# 10/01/2010 V1.4 libgin.a must be compiled before gremlin is going to
# be linked
# 14/01/2011 V1.5 call cxx/Makefile in top-level targets
#
# ============================================================================
#
.PHONY: all
all: install
.PHONY: install
install:
(cd cxx; $(MAKE) install)
$(MAKE) libraries
$(MAKE) allhere
.PHONY: libraries
libraries: libgremlin1xx.a
libraries:
(cd cxx; $(MAKE) install)
(cd libs; $(MAKE) libs)
.PHONY: allhere
......@@ -135,12 +139,6 @@ wgremlin: gremlin.o gremlin_help.o
gredim: gredim.o
$(FC) -o gredim gredim.o $(GFLAG) $(F2CLIB)
#----------------------------------------------------------------------
# C++ interface
# -------------
libgremlin1xx.a:
cd cxx; $(MAKE) $@
#======================================================================
# documentation
......
......@@ -41,12 +41,17 @@
# REVISIONS and CHANGES
# 30/12/2002 V1.0 Thomas Forbriger
# 09/02/2010 V1.1 checked for new compiler
# 14/01/2011 V1.2 provide reinstall target
#
# ============================================================================
#
# You will find the installed library header files in $(LOCINCLUDEDIR)/aff
all: install-include libgremlin1xx.a doxydoc
.PHONY: all
all: install doxydoc
.PHONY: install
install: install-include libgremlin1xx.a
# check mandatory environment variable settings
# ---------------------------------------------
......@@ -103,7 +108,7 @@ endif
#----------------------------------------------------------------------
# files which are to be edited
flist: Makefile doxyfull.cfg $(README) $(HEADERS) $(SRC)
flist: Makefile doxydoc.cfg $(README) $(HEADERS) $(SRC)
echo $^ | tr ' ' '\n' | sort >> $@
# Offers you a list of files to edit (ask Thomas for appropriate vim
......@@ -185,6 +190,19 @@ $(INCINSTALLPATH)/%.h: %.h.strip
install-include: $(INSTHEADER)
echo $^ | tr ' ' '\n'
#======================================================================
# reinstall target
# is necessary in case of header file problems (e.g. remcmmnt not installed)
.PHONY: clean-include
clean-include:
/bin/rm -fv $(INSTHEADER)
.PHONY: reinstall
reinstall:
$(MAKE) clean
$(MAKE) clean-include
$(MAKE) install
#======================================================================
# documentation part
# ------------------
......
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