--- chewbacca/Makefile 2009/08/04 13:57:59 1.11 +++ chewbacca/Makefile 2010/02/11 09:02:06 1.15 @@ -48,6 +48,17 @@ done endif +YodaProfiler: YodaProfiler/inc/* YodaProfiler/src/* +ifeq ($(verbose),) + @for sub_dir in "YodaProfiler" ; do \ + ( cd $$sub_dir &>/dev/null && (${EGREEN} "Make all in $$sub_dir "; ${RESET}) && make -s BASEDIR=$(BASEDIR)) ; \ + done +else + for sub_dir in "YodaProfiler" ; do \ + ( cd $$sub_dir && make BASEDIR=$(BASEDIR)) ; \ + done +endif + distclean: ifeq ($(verbose),) @for sub_dir in $(DIRS) ; do \ @@ -85,8 +96,10 @@ @if [ ! -d $(FEV_PLUGIN) ]&&[ "$(FEV_PLUGIN)" != "" ]; then mkdir $(FEV_PLUGIN); fi @(${EGREEN} " Installing: library "${WHITE}"libyoda.so "; ${RESET}) @cp -f $(BASEDIR)/event/libyoda.so.0.0.0 $(PAM_LIB)/ - @ln -sf $(PAM_LIB)/libyoda.so.0.0.0 $(PAM_LIB)/libyoda.so - @ln -sf $(PAM_LIB)/libyoda.so.0.0.0 $(PAM_LIB)/libyoda.so.0 + @(cd $(PAM_LIB) &>/dev/null && ln -sf libyoda.so.0.0.0 libyoda.so && cd - &>/dev/null) + @(cd $(PAM_LIB) &>/dev/null && ln -sf libyoda.so.0.0.0 libyoda.so.0 && cd - &>/dev/null) +# @ln -sf $(PAM_LIB)/libyoda.so.0.0.0 $(PAM_LIB)/libyoda.so +# @ln -sf $(PAM_LIB)/libyoda.so.0.0.0 $(PAM_LIB)/libyoda.so.0 @(${EGREEN} " Installing: exec file "${WHITE}"chewbacca"; ${RESET}) @cp -f $(BASEDIR)/PamOffLineSW/chewbacca $(PAM_BIN)/ @(${EGREEN} " Installing: "${WHITE}"yoda headers";${RESET}) @@ -94,6 +107,7 @@ @rm -rf $(PAM_INC)/yoda/ @cp -rf $(BASEDIR)/event/ $(PAM_INC)/yoda @cp -rf $(PAM_LIB)/libyoda.so.0.0.0 $(BASEDIR)/event/ + @ln -sf $(BASEDIR)/event/libyoda.so.0.0.0 $(BASEDIR)/event/libyoda.so @(${EGREEN}"") @(cd YodaProfiler &>/dev/null && make -s forceinstall) else @@ -115,8 +129,8 @@ if [ ! -d $(FEV_PLUGIN) ]&&[ "$(FEV_PLUGIN)" != "" ]; then mkdir $(FEV_PLUGIN); fi (${EGREEN} " Installing "${EWHITE}"libyoda.so "; ${RESET}) cp -f $(BASEDIR)/event/libyoda.so.0.0.0 $(PAM_LIB)/ - ln -sf $(PAM_LIB)/libyoda.so.0.0.0 $(PAM_LIB)/libyoda.so - ln -sf $(PAM_LIB)/libyoda.so.0.0.0 $(PAM_LIB)/libyoda.so.0 + cd $(PAM_LIB) && ln -sf libyoda.so.0.0.0 libyoda.so && cd - + cd $(PAM_LIB) && ln -sf libyoda.so.0.0.0 libyoda.so.0 && cd - (${EGREEN} " Installing exec file "${EWHITE}"chewbacca"; ${RESET}) cp -f $(BASEDIR)/PamOffLineSW/chewbacca $(PAM_BIN)/ (${EGREEN} " Installing "${EWHITE}"yoda headers";${RESET}) @@ -124,6 +138,7 @@ rm -rf $(PAM_INC)/yoda/ cp -rf $(BASEDIR)/event/ $(PAM_INC)/yoda cp -rf $(PAM_LIB)/libyoda.so $(BASEDIR)/event/ + ln -sf $(BASEDIR)/event/libyoda.so.0.0.0 $(BASEDIR)/event/libyoda.so (${EGREEN}"") (cd YodaProfiler && make forceinstall) endif