Skip to content
Snippets Groups Projects
Commit 3b91d197 authored by Patrick Louis S Connor's avatar Patrick Louis S Connor
Browse files

Merge branch 'feature/remove-makefile' into 'master'

Remove the Makefile and files it uses

Closes #12

See merge request !25
parents 4d4435ef 69d21915
No related branches found
No related tags found
1 merge request!25Remove the Makefile and files it uses
Pipeline #7116010 passed
image: gitlab-registry.cern.ch/ci-tools/ci-worker:cc7
compilation:
stage: build
tags:
- cvmfs
script:
- source /cvmfs/cms.cern.ch/cmsset_default.sh
- yum install -y openssl-devel python3 zsh
- make
cmake:
stage: build
tags:
- cvmfs
......
CMSSW ?= CMSSW_12_4_0
GITLAB ?= https://gitlab.cern.ch
ORIGIN ?= $(GITLAB)/cms-analysis/general/DasAnalysisSystem/Core.git
BASE ?= $(PWD)
TABLES ?= $(GITLAB)/cms-analysis/general/DasAnalysisSystem/tables.git
.PHONY: all clean
.NOTPARALLEL: all
all: $(CMSSW) libgit2 TUnfold Darwin tables
cd $(CMSSW) && \
eval `scramv1 runtime -sh` && \
scram b
TUnfold: $(CMSSW)
wget https://www.desy.de/~sschmitt/TUnfold/TUnfold_V17.9.tgz
mkdir -p TUnfold TUnfold/lib
mv TUnfold_V17.9.tgz TUnfold
cd TUnfold && tar xvzf TUnfold_V17.9.tgz
cd $(CMSSW) && eval `scramv1 runtime -sh` && \
cd $(BASE)/TUnfold && make lib TUNFOLDVERSION='V17' -j && \
mv -f libunfold.so lib/libtunfold.so && \
mv -f TUnfoldV17Dict_rdict.pcm lib/ && \
cd $(BASE)/$(CMSSW) && scram setup $(BASE)/tunfold.xml
PlottingHelper: $(CMSSW)
git clone $(GITLAB)/cms-analysis/general/DasAnalysisSystem/PlottingHelper.git
cd $(CMSSW) && eval `scramv1 runtime -sh` && cd - && \
make -C PlottingHelper all -j2
KinFitter: $(CMSSW)
# TODO
FastNLO:
# TODO
# TODO: improve make statement & better interface with content of xml file (using `xmllint` --> check availability in CI)
Darwin: $(CMSSW) libgit2 tables
git clone $(GITLAB)/Proto/Darwin.git
cd $(CMSSW) && eval `scramv1 runtime -sh` && \
BOOST=$$(scram tool tag boost_header BOOSTHEADER_BASE) && \
cd $(BASE)/Darwin && make -j BOOST=$$BOOST && \
cd $(BASE)/$(CMSSW) && scram setup $(BASE)/darwin.xml
libgit2: $(CMSSW)
cd $(BASE)/$(CMSSW) && eval `scramv1 runtime -sh` && scram setup $(BASE)/libgit2.xml
$(CMSSW):
scramv1 project CMSSW $(CMSSW)
cd $(CMSSW)/src && eval `scramv1 runtime -sh` && \
git clone https://github.com/cms-jet/JetToolbox.git JMEAnalysis/JetToolbox -b jetToolbox_120X && \
(cd JMEAnalysis/JetToolbox; patch -p1 <../../../../jetToolbox_120X.patch) && \
git clone $(ORIGIN) Core
tables:
git clone $(TABLES) $@
clean:
@rm -rf $(CMSSW) TUnfold Darwin tables
<tool name="darwin" version="1.0"> <!-- TODO -->
<lib name="DarwinUserInfo"/>
<lib name="DarwinMetaInfo"/>
<lib name="DarwinOptions"/>
<lib name="DarwinObjects"/>
<lib name="DarwinDict"/>
<info url="https://protodarwin.docs.cern.ch"/>
<client>
<environment name="DARWIN" default="$CMSSW_BASE/../Darwin"/>
<environment name="INCLUDE" default="$DARWIN/interface"/>
<environment name="LIBDIR" default="$DARWIN/build/lib"/>
</client>
<use name="boost" />
<use name="boost_program_options" />
<runtime name="DARWIN_BASE" value="$DARWIN" type="path"/>
<runtime name="DARWIN_FIRE_AND_FORGET" value="$CMSSW_BASE/lib/$SCRAM_ARCH" type="path"/>
<runtime name="PATH" value="$DARWIN/build/bin" type="path"/>
<runtime name="LD_LIBRARY_PATH" value="$DARWIN/build/lib" type="path"/>
<runtime name="PYTHON3PATH" value="$DARWIN/build/python" type="path"/>
<runtime name="DARWIN_GIT_REPO" value="$CMSSW_BASE/src/Core" type="path"/>
<runtime name="DARWIN_TABLES" value="$CMSSW_BASE/../tables" type="path"/>
</tool>
<tool name="tunfold" version="17.9">
<lib name="tunfold"/>
<info url="https://www.desy.de/~sschmitt/tunfold.html"/>
<client>
<environment name="TUNFOLD_BASE" default="$CMSSW_BASE/../TUnfold"/>
<environment name="INCLUDE" default="$TUNFOLD_BASE"/>
<environment name="LIBDIR" default="$TUNFOLD_BASE/lib"/>
</client>
<use name="root_cxxdefaults"/>
<lib name="XMLIO" />
<lib name="XMLParser" />
<runtime name="LD_LIBRARY_PATH" value="$LIBDIR" type="path"/>
</tool>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment