Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-02-21 23:14:25

0001 #!/bin/bash
0002 
0003 # Setup for standalone build. To be further improved.
0004 
0005 path=$1
0006 
0007 if [ -z "$path" ] || [ ! -d "$path" ]; then
0008     echo "Argument must be an existing directory."
0009     exit 1
0010 fi
0011 
0012 if [ ! -d "$path/RecoTracker" ] ||
0013    [ ! -d "$path/RecoTracker/MkFitCore" ] ||
0014    [ ! -d "$path/RecoTracker/MkFitCMS" ]; then
0015     echo "Source directory must contain RecoTracker/MkFitCore/ and RecoTracker/MkFitCMS/."
0016     exit 1
0017 fi
0018 
0019 mkdir -p objs-Core objs-Core-Geoms objs-CMS objs-CMS-Geoms
0020 
0021 git clone git@github.com:trackreco/mkFit-external.git
0022 
0023 sa=$path/RecoTracker/MkFitCore/standalone
0024 
0025 ### ln -fs $sa/Makefile.config .
0026 
0027 cat > Makefile <<END
0028 export SRCDIR := $path
0029 export SADIR  := $path/RecoTracker/MkFitCore/standalone
0030 export SACMS  := $path/RecoTracker/MkFitCMS/standalone
0031 
0032 ### include Makefile.config
0033 
0034 all:
0035 
0036 
0037 SUBPKGS := Core CylCowWLids CMS
0038 
0039 %:
0040         \${MAKE} -C objs-Core -f \${SADIR}/Makefile \$@
0041         \${MAKE} -C objs-Core-Geoms -f \${SADIR}/Geoms/Makefile \$@
0042         \${MAKE} -C objs-CMS -f \${SACMS}/Makefile \$@
0043         \${MAKE} -C objs-CMS-Geoms -f \${SACMS}/Geoms/Makefile \$@
0044 END