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

provide reinstall target

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/trunk
SVN Revision: 3514
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent aa69b739
# this is <Makefile.buildingblocks>
# ----------------------------------------------------------------------------
# $Id: $
# $Id$
#
# Copyright (c) 2010 by Thomas Forbriger (BFO Schiltach)
#
......
......@@ -34,11 +34,13 @@ LIBDIRS=libaff \
libfapidxx \
TARGETS=$(addsuffix .install,$(LIBDIRS))
REINSTALL=$(addsuffix .reinstall,$(LIBDIRS))
INSTINCLUDE=$(addsuffix .install-include,$(LIBDIRS))
DOCTARGETS=$(addsuffix .doc,$(LIBDIRS))
CLEANTARGETS=$(addsuffix .clean,$(LIBDIRS))
all: $(INSTINCLUDE) $(TARGETS)
reinstall: $(REINSTALL)
doc: $(DOCTARGETS)
show: ; @echo $(TARGETS)
......@@ -56,6 +58,7 @@ clean:
$(MAKE) $(CLEANTARGETS)
%.install: %; cd $<; $(MAKE) install
%.reinstall: %; -(cd $<; $(MAKE) reinstall)
%.install-include: %; -(cd $<; $(MAKE) install-include)
%.doc: %; -(cd $<; $(MAKE) install doxyfull doc; $(MAKE))
%.clean: %; cd $<; $(MAKE) clean
......
......@@ -230,6 +230,19 @@ $(INCINSTALLPATH)/%.h: %.h.strip
.PHONY: install-include
install-include: $(INSTHEADER)
#======================================================================
# 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
# ------------------
......
......@@ -168,6 +168,19 @@ $(INCINSTALLPATH)/%.h: %.h.strip
.PHONY: install-include
install-include: $(INSTHEADER)
#======================================================================
# 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
# ------------------
......
......@@ -233,6 +233,19 @@ $(INCINSTALLPATH)/%.h: %.h.strip
.PHONY: install-include
install-include: $(INSTHEADER)
#======================================================================
# 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
#======================================================================
# tests
# -----
......
......@@ -144,6 +144,19 @@ $(INCINSTALLPATH)/%.h: %.h.strip
.PHONY: install-include
install-include: $(INSTHEADER)
#======================================================================
# 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
# ------------------
......
......@@ -156,6 +156,19 @@ $(ROOTINCINSTALLPATH)/%.h: %.h.strip
.PHONY: install-include
install-include: $(INSTHEADER) $(INSTROOTHEADER)
#======================================================================
# reinstall target
# is necessary in case of header file problems (e.g. remcmmnt not installed)
.PHONY: clean-include
clean-include:
/bin/rm -fv $(INSTHEADER) $(INSTROOTHEADER)
.PHONY: reinstall
reinstall:
$(MAKE) clean
$(MAKE) clean-include
$(MAKE) install
#----------------------------------------------------------------------
# eaxmple and test code
......
......@@ -177,6 +177,19 @@ $(INCINSTALLPATH)/%.h: $(CXXDIR)/%.h.strip
.PHONY: install-include
install-include: $(INSTHEADER)
#======================================================================
# 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
#----------------------------------------------------------------------
# create the binary library
# -------------------------
......
......@@ -143,6 +143,19 @@ $(INCINSTALLPATH)/%.h: %.h.strip
.PHONY: install-include
install-include: $(INSTHEADER)
#======================================================================
# 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
# ------------------
......
......@@ -108,6 +108,19 @@ $(INCINSTALLPATH)/%.h: %.h
.PHONY: install-include
install-include: $(INSTHEADER)
#======================================================================
# 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
# ------------------
......
......@@ -184,6 +184,19 @@ $(INCINSTALLPATH)/%.h: %.h.strip
.PHONY: install-include
install-include: $(INSTHEADER)
#======================================================================
# 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
# ------------------
......
......@@ -232,6 +232,19 @@ $(LOCINCLUDEDIR)/%.h: %.h
.PHONY: install-include
install-include: $(addprefix $(LOCINCLUDEDIR)/,$(HEADERS))
#======================================================================
# reinstall target
# is necessary in case of header file problems (e.g. remcmmnt not installed)
.PHONY: clean-include
clean-include:
/bin/rm -fv $(addprefix $(LOCINCLUDEDIR)/,$(HEADERS))
.PHONY: reinstall
reinstall:
$(MAKE) clean
$(MAKE) clean-include
$(MAKE) install
#======================================================================
#
# library dependency definitions
......
......@@ -143,6 +143,19 @@ $(INCINSTALLPATH)/%.h: %.h.strip
.PHONY: install-include
install-include: $(INSTHEADER)
#======================================================================
# 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