--- calo/flight/CaloProfile/Makefile 2009/12/14 14:49:14 1.7 +++ calo/flight/CaloProfile/Makefile 2010/06/18 13:27:29 1.8 @@ -1,6 +1,6 @@ # Calorimeter profile plugin # SOFTWARE VERSION -VER= v3r01 +VER= v3r02 # An almost general purpouse Makefile for PAMELA repository # Let's start with some usefull definition for colorize the echo RED='\E[1;31;40m' @@ -120,12 +120,17 @@ TOBEDEL = junk ROOTINC=$$${shell root-config --incdir} NROOTINC=${shell root-config --incdir} +ROOTVERS=$(shell echo `root-config --version | sed 's/\./\ /g' | sed 's/\//\ /g' `) +ROOTMAJ=$(word 1,$(ROOTVERS)) +ROOTMIN=$(word 2,$(ROOTVERS)) # Let's start all : test mkbindir mklibdir ${LIBF77LIBS} ${LIBROOTLIBS} ${LIBCPPLIBS} ${CXXEXELIBS} all: @echo -e ${GREEN} "" @(${EGREEN} " Finished, now you can install the package \n (use: make install or make upgrade or make forceinstall) "; ${RESET}) @echo -e ${GREEN} "" + @if [ ${ROOTMAJ} -lt 5 ]||([ ${ROOTMAJ} -eq 5 ]&&[ ${ROOTMIN} -lt 24 ]); then (${ERED} " W A R N I N G ! ! old ROOT version (${ROOTMAJ}.${ROOTMIN})\n The longitudinal fit will fail - upgrade ROOT to version >= 5.24! \n"; ${RESET}); fi; + @echo -e ${GREEN} "" @${RESET} # Here some general rules to produce objects in our local dir