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

provide target to install header files by name

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: 3828
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent e86281de
...@@ -90,13 +90,17 @@ LIBS=libsffu.a ...@@ -90,13 +90,17 @@ LIBS=libsffu.a
include $(patsubst %.c,%.d,$(patsubst %.o,%.c,$(LIBSFFUCOBS))) include $(patsubst %.c,%.d,$(patsubst %.o,%.c,$(LIBSFFUCOBS)))
HEADERS=$(wildcard *.h)
INSTHEADER=$(addprefix $(LOCINCLUDEDIR)/,$(HEADERS))
.PHONY: install-include .PHONY: install-include
install-include: install-include: $(INSTHEADER)
/bin/cp -fv $(wildcard *.h) $(LOCINCLUDEDIR) $(LOCINCLUDEDIR)/%.h: %.h
/bin/cp -fv $< $@
.PHONY: clean-include .PHONY: clean-include
clean-include: clean-include:
-/bin/rm -fv $(addprefix $(LOCINCLUDEDIR),$(wildcard *.h)) -/bin/rm -fv $(INSTHEADER)
#---------------------------------------------------------------------- #----------------------------------------------------------------------
......
...@@ -122,9 +122,14 @@ libtf.doc: $(DOCSRC) ...@@ -122,9 +122,14 @@ libtf.doc: $(DOCSRC)
#====================================================================== #======================================================================
# C header files # C header files
HEADERS=$(wildcard *.h)
INSTHEADER=$(addprefix $(LOCINCLUDEDIR)/,$(HEADERS))
.PHONY: install-include .PHONY: install-include
install-include: libtf.h install-include: $(INSTHEADER)
/bin/cp -vpf $^ $(LOCINCLUDEDIR) $(LOCINCLUDEDIR)/%.h: %.h
/bin/cp -fv $< $@
.PHONY: clean-include .PHONY: clean-include
clean-include: libtf.h clean-include: libtf.h
......
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