[cvs] / MG_ME / makefile Repository:
ViewVC logotype

View of /MG_ME/makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.61 - (download) (annotate)
Wed Oct 12 23:44:13 2011 UTC (6 years, 2 months ago) by madgraph
Branch: MAIN
CVS Tags: HEAD
Changes since 1.60: +0 -5 lines
Remove pythia-pgs from the cvs module
MEVERS   = V$(shell cat MGMEVersion.txt)
INTVERS  = V$(shell cat ${MADGRAPH_BASE}/WWW/htdocs/Downloads/interfaces/InterfaceVersion.txt)
EXRVERS  = V$(shell cat ExRootAnalysis/ExRootVersion.txt)
MAVERS = V$(shell cat MadAnalysis/MAVersion.txt)
ECVERS   = V$(shell cat EventConverter/ECVersion.txt)
MWVERS   = V$(shell cat Template/Source/MadWeight_File/MW_TemplateVersion.txt)


all: compiles rundir downloads model_calc_htmls


compiles:
	cd MadGraphII;make mg2;make mgtest;make gen_proc_id
	cd Calculators/sm; make
	cd Calculators/sm_ufo; make
	cd Calculators/mssm; make
	cd Calculators/TwoHiggsCalc; make
	cd HELAS; make; make clean
	cd DECAY; ./restorelinks.sh; rm restorelinks.sh; make
	cd MadAnalysis; make
	cd pythia-pgs; make -k
	cd ExRootAnalysis; make

rundir: dir calculators pythia-pgs delphes WebBin/gen_cardhtml-pl WebBin/gen_cardhtml_MW-pl WebBin/gen_crossxhtml-pl WebBin/gen_infohtml-pl WebBin/gen_jpeg-pl \
	WebBin/newprocess WebBin/newprocess_MW WebBin/setup_model-pl WebBin/split_banner.pl issudgrid

dir:
	-test -d WebBin || mkdir -p WebBin
	-test -d WebBin/Calculators || mkdir -p WebBin/Calculators
	-test -d WebBin/pythia-pgs || mkdir -p WebBin/pythia-pgs
	-test -d WebBin/lib || mkdir -p WebBin/lib

calculators: WebBin/Calculators/MSSMCalc WebBin/Calculators/TwoHiggsCalc WebBin/Calculators/gen2hb WebBin/Calculators/parser.pl WebBin/Calculators/parserBR.pl WebBin/Calculators/sm.in WebBin/Calculators/smcalc WebBin/Calculators/smcalc_ufo 

WebBin/Calculators/smcalc:
	cd WebBin/Calculators;ln -sf ../../Calculators/sm/smcalc

WebBin/Calculators/smcalc_ufo:
	cd WebBin/Calculators;ln -sf ../../Calculators/sm_ufo/smcalc_ufo

WebBin/Calculators/sm.in:
	cd WebBin/Calculators;ln -sf ../../Calculators/sm/sm.in

WebBin/Calculators/parserBR.pl:
	cd WebBin/Calculators;ln -sf ../../Calculators/TwoHiggsCalc/bin/parserBR.pl

WebBin/Calculators/parser.pl:
	cd WebBin/Calculators;ln -sf ../../Calculators/TwoHiggsCalc/bin/parser.pl

WebBin/Calculators/gen2hb:
	cd WebBin/Calculators;ln -sf ../../Calculators/TwoHiggsCalc/bin/gen2hb

WebBin/Calculators/TwoHiggsCalc:
	cd WebBin/Calculators;ln -sf ../../Calculators/TwoHiggsCalc/bin/TwoHiggsCalc

WebBin/Calculators/MSSMCalc:
	cd WebBin/Calculators;ln -sf ../../Calculators/mssm/MSSMCalc

pythia-pgs: WebBin/pythia-pgs/PDFsets WebBin/pythia-pgs/clean_output WebBin/pythia-pgs/hep2lhe WebBin/pythia-pgs/mass_width_2004.mc WebBin/pythia-pgs/pgs WebBin/pythia-pgs/pythia

issudgrid:
	cd WebBin/lib; \
	ln -sfv ../../../WWW/htdocs/Downloads/issudgrid-7000-7000-cteq6l1-2.dat.gz ../../../WWW/htdocs/Downloads/issudgrid-5000-5000-cteq6l1-2.dat.gz \
	../../../WWW/htdocs/Downloads/issudgrid-980-980-cteq6l1-2.dat.gz .

WebBin/pythia-pgs/%:
	cd WebBin/pythia-pgs;ln -sf ../../pythia-pgs/src/$*

WebBin/%_MW:
	cd WebBin;ln -sf ../Template/Source/MadWeight_File/MWP_template/$*_MW

WebBin/%:
	cd WebBin;ln -sf ../Template/bin/$*

delphes: WebBin/Delphes
	cd WebBin; ln -sf ../Delphes



downloads:
	cd ${MADGRAPH_BASE}; \
	cp MG5/UpdateNotes.txt ${MADGRAPH_BASE}/WWW/htdocs/Downloads/UpdateNotes_mg5.txt; \
	mkdir -v download-temp;cd download-temp; \
	cvs co MG_ME/MadGraphII MG_ME/Models MG_ME/Template MG_ME/HELAS \
	MG_ME/DECAY MG_ME/README MG_ME/makefile.download MG_ME/MGMEVersion.txt \
        MG_ME/UpdateNotes.txt; \
	rm -rfv `find MG_ME -name CVS -type d`; \
	mv MG_ME/makefile.download MG_ME/makefile; \
	cd MG_ME/DECAY;./restorelinks.sh;rm restorelinks.sh;cd ../..; \
        cp -prv MG_ME MG_ME_$(MEVERS); \
	tar czf MG_ME_$(MEVERS).tar.gz MG_ME_$(MEVERS); \
	cp -pv MG_ME_$(MEVERS).tar.gz ${MADGRAPH_BASE}/WWW/htdocs/Downloads/; \
	cp -pv MG_ME_$(MEVERS)/UpdateNotes.txt ${MADGRAPH_BASE}/WWW/htdocs/Downloads/; \
	cp -pv MG_ME_$(MEVERS)/Template/Source/MadWeight_File/MW_UpdateNote.txt ${MADGRAPH_BASE}/WWW/htdocs/Downloads/; \
	rm -rf MG_ME_$(MEVERS) MG_ME_$(MEVERS).tar.gz; \
	cvs co MG_ME/Transfer_Fct; \
	rm -rfv `find MG_ME -name CVS -type d`; \
        cp -prv MG_ME MG_ME_MW_$(MWVERS); \
	tar czf MG_ME_MW_$(MWVERS).tar.gz MG_ME_MW_$(MWVERS); \
	cp -pv MG_ME_MW_$(MWVERS).tar.gz ${MADGRAPH_BASE}/WWW/htdocs/Downloads/; \
	rm -rf MG_ME_MW_$(MWVERS) MG_ME_MW_$(MWVERS).tar.gz; \
	rm -rf MG_ME/Transfer_Fct; \
	rm -rf MG_ME/DECAY; \
	rm -f  MG_ME/makefile MG_ME/UpdateNotes.txt; \
	cvs co MG_ME/README.standalone;\
	rm -rfv `find MG_ME -name CVS -type d`; \
	cp -prv MG_ME MG_ME_SA_$(MEVERS); \
	mv MG_ME_SA_$(MEVERS)/README.standalone MG_ME_SA_$(MEVERS)/README; \
	cd MG_ME_SA_$(MEVERS)/Template; ./bin/standalone; cd ${MADGRAPH_BASE}/download-temp;\
	tar czf MG_ME_SA_$(MEVERS).tar.gz MG_ME_SA_$(MEVERS); \
	cp -pv MG_ME_SA_$(MEVERS).tar.gz ${MADGRAPH_BASE}/WWW/htdocs/Downloads/; \
	rm -rf MG_ME_SA_$(MEVERS) MG_ME_SA_$(MEVERS).tar.gz; \
	rm -f MG_ME/README.standalone;\
	cvs co MG_ME/README.standalone_dipole;\
	rm -rfv `find MG_ME -name CVS -type d`; \
	cp -prv MG_ME MG_ME_DIP_$(MEVERS); \
	mv MG_ME_DIP_$(MEVERS)/README.standalone_dipole MG_ME_DIP_$(MEVERS)/README; \
	cd MG_ME_DIP_$(MEVERS)/Template; ./bin/standalone_dipole; cd ${MADGRAPH_BASE}/download-temp;\
	tar czf MG_ME_DIP_$(MEVERS).tar.gz MG_ME_DIP_$(MEVERS); \
	cp -pv MG_ME_DIP_$(MEVERS).tar.gz ${MADGRAPH_BASE}/WWW/htdocs/Downloads/; \
	rm -rf MG_ME_DIP_$(MEVERS) MG_ME_DIP_$(MEVERS).tar.gz; \
        cvs co MG_ME/ExRootAnalysis/; \
        cvs co MG_ME/MadAnalysis/; \
        cvs co MG_ME/EventConverter/; \
	cvs co MG_ME/Calculators/; \
	rm -rfv `find MG_ME -name CVS -type d`; \
	cd MG_ME/; \
	rm -rf `find . -name CVS -type d`; \
	tar czf ExRootAnalysis_$(EXRVERS).tar.gz ExRootAnalysis/; \
	mkdir -p ${MADGRAPH_BASE}/WWW/htdocs/Downloads/ExRootAnalysis; \
	cp -pv ExRootAnalysis_$(EXRVERS).tar.gz ${MADGRAPH_BASE}/WWW/htdocs/Downloads/ExRootAnalysis; \
	cd ExRootAnalysis/doc/; \
	cp -pv README RootTreeDescription.html ${MADGRAPH_BASE}/WWW/htdocs/Downloads/ExRootAnalysis; \
        cd ${MADGRAPH_BASE}/download-temp/MG_ME; \
	cd MadAnalysis;./restorelinks.sh;rm restorelinks.sh;cd ..; \
        tar czf MadAnalysis_$(MAVERS).tar.gz MadAnalysis/; \
        cp -pv MadAnalysis_$(MAVERS).tar.gz ${MADGRAPH_BASE}/WWW/htdocs/Downloads/; \
        tar czf EventConverter_$(ECVERS).tar.gz EventConverter/; \
        cp -pv EventConverter_$(ECVERS).tar.gz ${MADGRAPH_BASE}/WWW/htdocs/Downloads/; \
	tar czf Calculators.tar.gz Calculators/; \
	cp -pv Calculators.tar.gz ${MADGRAPH_BASE}/WWW/htdocs/Downloads/; \
	cd ${MADGRAPH_BASE}; \
        rm -rf download-temp; \
	cd WWW/htdocs/Downloads/interfaces; \
	tar czf interfaces2ME_$(INTVERS).tar.gz *.f; \
	mv -v interfaces2ME_$(INTVERS).tar.gz ../

model_calc_htmls:
	cp -pv Models/mssm/mssm_calc.html ${MADGRAPH_BASE}/WWW/htdocs/Calculators/mssm/

Mail to administrator
ViewVC Help
Powered by ViewVC 1.0.0