2 |
# RawReader makefile |
# RawReader makefile |
3 |
# |
# |
4 |
# SOFTWARE VERSION |
# SOFTWARE VERSION |
5 |
VER= v0r00 |
VER= v1r13 |
6 |
# An almost general purpouse Makefile for PAMELA repository |
# An almost general purpouse Makefile for PAMELA repository |
7 |
# Let's start with some usefull definition for colorize the echo |
# Let's start with some usefull definition for colorize the echo |
8 |
RED='\E[1;31;40m' |
RED='\E[1;31;40m' |
42 |
DIRSRC=src |
DIRSRC=src |
43 |
DIRINC=inc |
DIRINC=inc |
44 |
DIRDOC=doc |
DIRDOC=doc |
45 |
|
DIRDAT=dat |
46 |
# Here the PAMELA environmental variables to be checked |
# Here the PAMELA environmental variables to be checked |
47 |
PAM_ENV= PAM_BIN_env PAM_LIB_env PAM_INC_env PAM_DOC_env PAM_MACROS_env PAM_CALIB_env PAM_YODA_env |
PAM_ENV= PAM_BIN_env PAM_LIB_env PAM_INC_env PAM_DOC_env PAM_MACROS_env PAM_CALIB_env PAM_YODA_env |
48 |
# Here the local variables used to build the targets |
# Here the local variables used to build the targets |
80 |
# |
# |
81 |
CALIBFILES= |
CALIBFILES= |
82 |
DOCFILES= |
DOCFILES= |
83 |
|
DATFILES=parameter.dat |
84 |
# Here the Variables used for info target |
# Here the Variables used for info target |
85 |
PACKAGE=RawReader |
PACKAGE=RawReader |
86 |
EXECUTABLES=RawReader.exe |
EXECUTABLES=RawReader.exe |
94 |
# all: test mkbindir mklibdir ${EXECUTABLES} |
# all: test mkbindir mklibdir ${EXECUTABLES} |
95 |
all: mkbindir mklibdir ${EXECUTABLES} |
all: mkbindir mklibdir ${EXECUTABLES} |
96 |
@echo -e ${GREEN} "" |
@echo -e ${GREEN} "" |
97 |
@(${EGREEN} " Finished, now you can install the package \n (use: make install or make upgrade or make forceinstall) "; ${RESET}) |
@(${EGREEN} " Finished, now you can install the package \n (use: make install or make upgrade or make forceinstall) \n or you can copy by hand the files: "; ${RESET}) |
98 |
|
@(${EBLUE} " - ${EXECUTABLES}" ) |
99 |
|
@(${EBLUE} " - ${DIRDAT}/${DATFILES}"; ${RESET}) |
100 |
@echo -e ${GREEN} "" |
@echo -e ${GREEN} "" |
101 |
@${RESET} |
@${RESET} |
102 |
|
|
167 |
upgrade: install |
upgrade: install |
168 |
|
|
169 |
#install: installlib installinc installmacros installcalib installdoc installexe installcmacro |
#install: installlib installinc installmacros installcalib installdoc installexe installcmacro |
170 |
install: |
install: test installexe installdoc installdat |
171 |
|
|
172 |
installlib: LINK=y |
installlib: LINK=y |
173 |
installlib: TOBEMOVED= $(FULLLIBS:${DIRLIB}%=${PAM_LIB}%) |
installlib: TOBEMOVED= $(FULLLIBS:${DIRLIB}%=${PAM_LIB}%) |
206 |
installdoc: |
installdoc: |
207 |
@${test_and_cp} |
@${test_and_cp} |
208 |
|
|
209 |
|
installdat: TOBEMOVED= $(DATFILES:${DIRDAT}/%=${PAM_BIN}/%) |
210 |
|
installdat: ORIGIN=${DIRDAT} |
211 |
|
installdat: |
212 |
|
@${test_and_cp} |
213 |
|
|
214 |
info: |
info: |
215 |
@echo " " |
@echo " " |
216 |
@${EGREEN} "Infos for package :" ${WHITE} ${PACKAGE} |
@${EGREEN} "Infos for package :" ${WHITE} ${PACKAGE} |
220 |
@${EGREEN} " SRCS :" ${WHITE} ${SRCS} |
@${EGREEN} " SRCS :" ${WHITE} ${SRCS} |
221 |
@${EGREEN} " OBJS :" ${WHITE} ${OBJS} |
@${EGREEN} " OBJS :" ${WHITE} ${OBJS} |
222 |
@${EGREEN} " DOCS :" ${WHITE} ${DOCS} |
@${EGREEN} " DOCS :" ${WHITE} ${DOCS} |
223 |
@${EGREEN} " MACROS :" ${WHITE} ${MACROS} |
@${EGREEN} " PARAMETERS :" ${WHITE} ${DATFILES} |
224 |
@echo " " |
@echo " " |
225 |
@${RESET} |
@${RESET} |
226 |
|
|