]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
*** empty log message ***
authorhades <hades>
Thu, 10 Aug 2000 15:48:41 +0000 (15:48 +0000)
committerhades <hades>
Thu, 10 Aug 2000 15:48:41 +0000 (15:48 +0000)
allParam/Makefile

index 8bb8d65479b5d13e30beb7a59fce4ef238fa06d4..d5ccdccfb70fb8531a9371fb4d5cd52d65edfe24 100644 (file)
@@ -1,7 +1,12 @@
+LIBDIR = $(HOME)/lib
+INCLUDEDIR = $(HOME)/include
+
 ARFLAGS = -rc
-PARAMLIBES = tclParam caParam 
+PARAMLIBES = caParam tclParam
 CXXPARAMOBJS = ora/ora tcl/tcl tcl/struct file/file param/enh
 
+VPATH = ca:tcl
+
 all : $(patsubst %,lib%.a,$(PARAMLIBES)) libcxxParam.a
 
 libcxxParam.a : $(patsubst %,%Param.o,$(CXXPARAMOBJS))
@@ -13,6 +18,16 @@ $(patsubst %,lib%.a,$(PARAMLIBES)) :
 $(patsubst %,%Param.o,$(CXXPARAMOBJS)) :
        cd $(dir $@) ; $(MAKE) $(notdir $@)
 
+install : $(patsubst %Param,install_%,$(PARAMLIBES))
+
+$(patsubst %Param,install_%,$(PARAMLIBES)) : \
+  $(patsubst install_%,lib%Param.a,$@)
+       install \
+       $(patsubst install_%,%,$@)/lib$(patsubst install_%,%,$@)Param.a $(LIBDIR)
+       install -d $(INCLUDEDIR)/$(patsubst install_%,%,$@)
+       install $(patsubst install_%,%,$@)/param.h \
+       $(INCLUDEDIR)/$(patsubst install_%,%,$@)
+
 clean :
        cd ca ; $(MAKE) $@
        cd tcl ; $(MAKE) $@