Using date-config in order to steer the make. Adding amore into the DA.
[u/mrichter/AliRoot.git] / build / MakefileDA
CommitLineData
17cb72ed 1#-*- Mode: Makefile -*-
2
0c662ab2 3ONLINEDETECTORNAME:=$(firstword $(subst -, ,$(subst -clean,,$(subst -rpm,,$(subst daqDA-,,$(filter daqDA-% daqDA-%-rpm daqDA-%-clean,$(MAKECMDGOALS)))))))
4DAMODULE:=$(subst SPD,ITS,$(subst SDD,ITS,$(subst SSD,ITS,$(subst HMP,HMPID,$(subst PHS,PHOS,$(subst CPV,PHOS,$(subst MCH,MUON,$(subst MTR,MUON,$(subst T00,T0,$(subst V00,VZERO,$(subst ACO,ACORDE,$(subst EMC,EMCAL,$(ONLINEDETECTORNAME)))))))))))))
35f91121 5
0c662ab2 6ifeq ($(ONLINEDETECTORNAME),SPD)
7SUBDAMODULE:=SPD
35f91121 8else
0c662ab2 9ifeq ($(ONLINEDETECTORNAME),SDD)
10SUBDAMODULE:=SDD
11else
12ifeq ($(ONLINEDETECTORNAME),SSD)
13SUBDAMODULE:=SSD
14else
15ifeq ($(ONLINEDETECTORNAME),CPV)
16SUBDAMODULE:=CPV
17else
18ifeq ($(ONLINEDETECTORNAME),MCH)
19SUBDAMODULE:=TRK
20else
21ifeq ($(ONLINEDETECTORNAME),MTR)
22SUBDAMODULE:=TRG
23endif
24endif
25endif
26endif
27endif
28endif
29
30DANAME=$(word 2,$(subst -, ,$(subst -clean,,$(subst -rpm,,$(subst daqDA-,,$(filter daqDA-% daqDA-%-rpm daqDA-%-clean,$(MAKECMDGOALS)))))))
31
32ifneq ($(DANAME),)
33
34DATARGETNAME:=daqDA-$(ONLINEDETECTORNAME)-$(DANAME)
35
36ifeq ($(DANAME),NONAME)
37DANAME:=
35f91121 38endif
39
40ifneq ($(findstring $(DAMODULE),$(MODULES)),)
4179078a 41
1a5b20b8 42CXXFLAGS:=$(filter-out -pedantic-errors,$(CXXFLAGS))
17cb72ed 43CXXFLAGS+=-I${ALICE_ROOT}/RAW
4caead95 44CXXFLAGS+=-I${ALICE_ROOT}/$(DAMODULE)
5297a78f 45CXXFLAGS+=$(addprefix -I,$(filter-out %tgt_${ALICE_TARGET},$(patsubst %/,%,$(shell ls -d ${ALICE_ROOT}/$(DAMODULE)/*/))))
17cb72ed 46
f2d76654 47DATARGETDIR=${DAMODULE}/tgt_${ALICE_TARGET}
0c662ab2 48DASRC=${DAMODULE}/${DAMODULE}$(SUBDAMODULE)${DANAME}da.cxx
49DAOBJ=${DATARGETDIR}/${DAMODULE}$(SUBDAMODULE)${DANAME}da.o
50DADEP=${DATARGETDIR}/${DAMODULE}$(SUBDAMODULE)${DANAME}da.d
51DALIB=${ALICE_ROOT}/lib/tgt_${ALICE_TARGET}/lib${DAMODULE}$(SUBDAMODULE)${DANAME}DA.a
52DAEXE=${ALICE_ROOT}/bin/tgt_${ALICE_TARGET}/${DAMODULE}$(SUBDAMODULE)${DANAME}da.exe
17cb72ed 53
5297a78f 54DAVERSION=$(firstword $(shell svn info $(DASRC) | grep "Last Changed Rev:" | cut -d: -f2 ))
35f91121 55
56DAROOTRELEASE=$(subst /,.,$(shell root-config --version))
f2d76654 57
5297a78f 58#DAALIROOTRELEASE=$(notdir $(subst /$(DASRC),,$(shell svn info $(DASRC) | grep "URL:" | cut -d: -f3 )))
59DAALIROOTRELEASE+=$(subst -,.,$(notdir $(subst /$(DASRC),,$(shell svn info $(DASRC) | grep "URL:" | cut -d: -f3 ))))"."$(firstword $(shell svn info $(DASRC) | grep "Revision:" | cut -d: -f2 ))
f2d76654 60
0c662ab2 61DAARCNAME=$(patsubst %-,%,daqDA-${ONLINEDETECTORNAME}-${DANAME})
62DAARC=$(DAARCNAME)-$(DAVERSION)
f2d76654 63DATAR=${DATARGETDIR}/$(DAARC).src.tar.gz
0c662ab2 64DASPECFILE=${DATARGETDIR}/$(DAMODULE)$(SUBDAMODULE)$(DANAME)da.spec
65DAMAKEFILE=${DATARGETDIR}/${DAMODULE}$(SUBDAMODULE)${DANAME}da.make
e06bd7b4 66
35f91121 67ifeq ($(DAQDALIB_PATH),)
17cb72ed 68DAQDADIR=${ALICE}/daqDAlib
35f91121 69else
70DAQDADIR=${DAQDALIB_PATH}
71endif
17cb72ed 72DAQDALIB=$(DAQDADIR)/libdaqDA.a
73
396cdc74 74ifneq ($(shell amore-config 2>&1 |grep -i usage),)
75AMOREFLAGS = -DALI_AMORE $(shell amore-config --cflags --includes)
76CXXFLAGS += $(AMOREFLAGS)
77CFLAGS += $(AMOREFLAGS)
78CINTFLAGS += $(AMOREFLAGS)
79DEPINC += $(AMOREFLAGS)
80DAQDALIB += $(shell amore-config --auxlibs)
81endif
82
17cb72ed 83ROOTLIBDIR=$(shell root-config --libdir)
84
84195f62 85SYSLIBS=-ldl -lpthread
e06bd7b4 86
17cb72ed 87MONITORLIBS=$(shell date-config --monitorlibs=noshift)
88
9c678667 89ALIROOTALIBS=$(RAWDatabaseALIB) $(RAWDatarecALIB) $(RAWDatasimALIB) $(STEERBaseALIB) $(STEERALIB) $(CDBALIB) $(ESDALIB) $(AODALIB)
17cb72ed 90
4caead95 91ALIROOTALIBS+=$($(DAMODULE)ALIBS)
17cb72ed 92
35f91121 93EXTRAROOTLIB=${ALICE_ROOT}/lib/tgt_${ALICE_TARGET}/libRootExtra.a
17cb72ed 94
35f91121 95EXTRADAMODULE:=$(firstword $(subst /,,$(subst $(ALICE_ROOT),,$(filter-out $(ALICE_ROOT)/STEER/ $(ALICE_ROOT)/RAW/ $(ALICE_ROOT)/$(DAMODULE)% $(ALICE_ROOT)/include/,$(sort $(dir $(filter $(ALICE_ROOT)%,$(filter-out %.o:,$(filter-out %.cxx,$(filter-out \,$(shell if [ -f "${DADEP}" ]; then cat $(DADEP); fi)))))))))))
17cb72ed 96
35f91121 97ifneq ($(EXTRADAMODULE),)
98CXXFLAGS+=-I${ALICE_ROOT}/$(EXTRADAMODULE)
99CXXFLAGS+=$(addprefix -I,$(filter-out %tgt_${ALICE_TARGET},$(filter-out %CVS,$(patsubst %/,%,$(shell ls -d ${ALICE_ROOT}/$(EXTRADAMODULE)/*/)))))
100ALIROOTALIBS+=$($(EXTRADAMODULE)ALIBS)
17cb72ed 101endif
102
292ef3be 103DACONTACT=$(sort $(shell grep -i "Contact:" $(DASRC) | cut -d':' -f2))
2e9766df 104DALINKPAGE=$(sort $(subst Link:,,$(shell grep -i "Link:" $(DASRC))))
105DAREFRUN=$(sort $(shell grep -i "Reference Run:" $(DASRC) | cut -d':' -f2))
292ef3be 106DARUNTYPE=$(sort $(shell grep -i "Run Type:" $(DASRC) | cut -d':' -f2))
107DATYPE=$(sort $(shell grep -i "DA Type:" $(DASRC) | cut -d':' -f2))
108DANUMBEROFEVENTS=$(sort $(shell grep -i "Number of events needed:" $(DASRC) | cut -d':' -f2))
109DAINPUTFILES=$(sort $(shell grep -i "Input Files:" $(DASRC) | cut -d':' -f2))
110DAOUTPUTFILES=$(sort $(shell grep -i "Output Files:" $(DASRC) | cut -d':' -f2))
111DATRIGGERTYPE=$(sort $(shell grep -i "Trigger types used:" $(DASRC) | cut -d':' -f2))
112
35f91121 113$(DATARGETNAME): $(DAEXE)
114
115$(DAEXE): $(DAOBJ) $(LIBPATH) $(DALIB) $(DAQDALIB) $(EXTRAROOTLIB)
f2d76654 116 @echo "***** Making executable $(DAEXE) *****"
35f91121 117 $(MUTE)$(LD) $(LDFLAGS) -o $@ $< \
118 $(DALIB) \
119 $(EXTRAROOTLIB) \
4179078a 120 $(ROOTLIBDIR)/libRoot.a \
121 $(ROOTLIBDIR)/libfreetype.a $(ROOTLIBDIR)/libpcre.a \
35f91121 122 $(DAQDALIB) $(MONITORLIBS) \
123 $(SYSLIBS)
17cb72ed 124
f2d76654 125$(DAOBJ): $(DASRC) $(DAQDADIR) $(DADEP) $(DATARGETDIR)
126 @echo "***** Compiling $(DASRC) *****"
4caead95 127 $(MUTE)$(CXX) -c $(CXXFLAGS) -I$(DAQDADIR) $< -o $@
4179078a 128
f2d76654 129$(DADEP): $(DASRC) $(DAQDADIR) $(DATARGETDIR)
130 @echo "***** Making detector-algorithm dependencies $(DADEP) *****"
35f91121 131 $(MUTE)$(CPP) -MM $(CXXFLAGS) $(addprefix -I$(ALICE_ROOT)/,$(MODULES)) -I$(DAQDADIR) $< > $@
17cb72ed 132
133-include $(DADEP)
134
f2d76654 135$(DATARGETDIR):
136 $(MUTE)if [ ! -d '$@' ]; then echo "***** Making directory $@ *****"; mkdir -p $@; fi
137
17cb72ed 138$(DALIB): $(ALIROOTALIBS)
f2d76654 139 @echo "***** Linking static library $(DALIB) *****"
4caead95 140 $(MUTE)rm -rf $@
141 $(MUTE)rm -rf junk
142 $(MUTE)mkdir junk && cd junk && $(addprefix $(AR) x ../,$(addsuffix &&,$^)) $(AR) r $@ *.o && cd .. && rm -rf junk
17cb72ed 143
35f91121 144$(EXTRAROOTLIB): $(LIBPATH)
2849a133 145 $(MUTE)$(AR) r $@ `ls ${ROOTSYS}/montecarlo/vmc/src/*.o ${ROOTSYS}/tree/treeplayer/src/*.o`
35f91121 146
147$(DATARGETNAME)-clean:
0c662ab2 148 @echo "***** Cleaning $(DAMODULE)$(SUBDAMODULE)$(DANAME) detector-algorithm *****"
f2d76654 149 $(MUTE)rm -f $(DASPECFILE)
150 $(MUTE)rm -f $(DATAR)
4caead95 151 $(MUTE)rm -f $(DAEXE)
152 $(MUTE)rm -f $(DAOBJ)
153 $(MUTE)rm -f $(DADEP)
154 $(MUTE)rm -f $(DAMAKEFILE)
155 $(MUTE)rm -f $(DALIB)
156 $(MUTE)rm -f $(ALIROOTALIBS)
35f91121 157 $(MUTE)rm -f $(EXTRAROOTLIB)
17cb72ed 158
f2d76654 159$(DAMAKEFILE): $(DATARGETDIR)
35f91121 160 $(MUTE)rm -f $(DAMAKEFILE)
f2d76654 161 @echo "***** Making makefile $(DAMAKEFILE) *****"
35f91121 162 @echo "####################################################" >> $@
163 @echo "# Makefile for Detector Algorithm" >> $@
164 @echo "#" >> $@
165 @echo "# It is necessary to setup build environment before" >> $@
166 @echo "# using make:" >> $@
167 @echo "# - define path to daqDAlib (env. DAQDALIB_PATH)" >> $@
168 @echo "#" >> $@
169 @echo "####################################################" >> $@
170 @echo "" >> $@
171 @echo "CXX=$(CXX)" >> $@
172 @echo "LD=$(LD)" >> $@
173 @echo "" >> $@
174 @echo "CXXFLAGS=$(CXXFLAGS)" >> $@
175 @echo "LDFLAGS=$(LDFLAGS)" >> $@
176 @echo "" >> $@
177 @echo "ifeq (""$$""(DAQDALIB_PATH),)" >> $@
178 @echo "DAQDADIR=${ALICE}/daqDAlib" >> $@
179 @echo "else" >> $@
180 @echo "DAQDADIR=""$$""(DAQDALIB_PATH)" >> $@
181 @echo "endif" >> $@
182 @echo "" >> $@
e06bd7b4 183 @echo "DAQDALIB=""$$""(DAQDADIR)/libdaqDA.a" >> $@
184 @echo "MONITORLIBS=""$$""(shell date-config --monitorlibs=noshift)" >> $@
35f91121 185 @echo "" >> $@
0c662ab2 186 @echo "${DAMODULE}${SUBDAMODULE}${DANAME}da.exe: ${DAMODULE}${SUBDAMODULE}${DANAME}da.o" >> $@
35f91121 187 @echo " ""$$""(LD) ""$$""(LDFLAGS) -o ""$$""@ ""$$""< \\" >> $@
188 @echo " $(DALIB) \\" >> $@
189 @echo " $(EXTRAROOTLIB) \\" >> $@
190 @echo " ""$$""(ROOTSYS)/lib/libRoot.a \\" >> $@
191 @echo " ""$$""(ROOTSYS)/lib/libfreetype.a ""$$""(ROOTSYS)/lib/libpcre.a \\" >> $@
192 @echo " ""$$""(DAQDALIB) ""$$""(MONITORLIBS) \\" >> $@
193 @echo " $(SYSLIBS)" >> $@
194 @echo "" >> $@
0c662ab2 195 @echo "${DAMODULE}${SUBDAMODULE}${DANAME}da.o: ${DAMODULE}${SUBDAMODULE}${DANAME}da.cxx" >> $@
e06bd7b4 196 @echo " ""$$""(CXX) -c ""$$""(CXXFLAGS) -I""$$""(DAQDADIR) ""$$""< -o ""$$""@" >> $@
35f91121 197 @echo "" >> $@
e06bd7b4 198 @echo "clean:" >> $@
0c662ab2 199 @echo " @rm -f ${DAMODULE}${SUBDAMODULE}${DANAME}da.exe ${DAMODULE}${SUBDAMODULE}${DANAME}da.o" >> $@
35f91121 200 @echo "" >> $@
0c662ab2 201 @echo "install: ${DAMODULE}${SUBDAMODULE}${DANAME}da.exe" >> $@
f2d76654 202 @echo " @if [ '""$$""(INSTALL_PATH)' == '' ]; then \\" >> $@
203 @echo " echo Environment variable INSTALL_PATH undefined, cannot continue; \\" >> $@
204 @echo " exit 1; \\" >> $@
205 @echo " fi" >> $@
0c662ab2 206 @echo " @cp -p ${DAMODULE}${SUBDAMODULE}${DANAME}da.exe ""$$""(INSTALL_PATH)" >> $@
f2d76654 207
35f91121 208$(DATAR): $(DASRC) $(DAMAKEFILE) $(DASPECFILE)
f2d76654 209 @echo "***** Making archive $(DATAR) *****"
210 $(MUTE)rm -rf $(DATAR)
4caead95 211 $(MUTE)rm -rf junk
35f91121 212 $(MUTE)mkdir junk && mkdir junk/$(DAARC) && \
213 cp -a $(DASRC) junk/$(DAARC) && \
f2d76654 214 cp -a $(DAMAKEFILE) junk/$(DAARC)/Makefile && \
0c662ab2 215 cp -a $(DASPECFILE) junk/$(DAARC)/$(DAMODULE)${SUBDAMODULE}$(DANAME)da.spec && \
17cb72ed 216 cd junk && \
f2d76654 217 tar czf ../$(DATAR) * && \
17cb72ed 218 cd .. && rm -rf junk
4179078a 219
f2d76654 220$(DASPECFILE): $(DATARGETDIR)
35f91121 221 $(MUTE)rm -f $(DASPECFILE)
f2d76654 222 @echo "***** Making RPM spec-file $(DASPECFILE) *****"
0c662ab2 223 @echo "# RPM specfile for $(DAMODULE)${SUBDAMODULE}$(DANAME) Detector Algorithm" >> $@
224 @echo "Summary: $(ONLINEDETECTORNAME) Detector Algorithm" >> $@
225 @echo "Name: $(DAARCNAME)" >> $@
f2d76654 226 @echo "Version: $(DAVERSION)" >> $@
0c662ab2 227 @echo "Release: $(DAALIROOTRELEASE)" >> $@
f2d76654 228 @echo "Copyright: CERN Alice DAQ/Offine" >> $@
229 @echo "Source: %{name}-%{version}.src.tar.gz" >> $@
230 @echo "Group: Applications/Alice" >> $@
231 @echo "Prefix: /opt/%{name}" >> $@
232 @echo "BuildRoot: %{_tmppath}/%{name}-root" >> $@
233 @echo "" >> $@
234 @echo "# automatic dependencies" >> $@
235 @echo "AutoReqProv: yes" >> $@
236 @echo "" >> $@
237 @echo "# list here required RPM packages for compilation" >> $@
238 @echo "BuildRequires: date" >> $@
239 @echo "" >> $@
240 @echo "# list here required RPM packages for runtime" >> $@
241 @echo "Requires: date" >> $@
242 @echo "" >> $@
243 @echo "# You can specify other dependencies in the description tag below." >> $@
244 @echo "" >> $@
245 @echo "# description of the package" >> $@
246 @echo "%description" >> $@
0c662ab2 247 @echo "This is the $(ONLINEDETECTORNAME) $(DANAME) DA for online calibration." >> $@
35f91121 248 @echo "It uses data from $(DAMODULE) and $(EXTRADAMODULE) detectors at run time." >> $@
249 @echo "Build requires: daqDAlib, date, AliRoot $(DAALIROOTRELEASE), ROOT $(DAROOTRELEASE)." >> $@
250 @echo "Runtime requires: date." >> $@
292ef3be 251 @echo "Contact: $(DACONTACT)" >> $@
252 @echo "Link: $(DALINKPAGE)" >> $@
2e9766df 253 @echo "Reference Run: $(DAREFRUN)" >> $@
292ef3be 254 @echo "Run type: $(DARUNTYPE)" >> $@
255 @echo "DA type: $(DATYPE)" >> $@
256 @echo "Number of events needed: $(DANUMBEROFEVENTS)" >> $@
257 @echo "Input files: $(DAINPUTFILES)" >> $@
258 @echo "Output files: $(DAOUTPUTFILES)" >> $@
259 @echo "Trigger types used: $(DATRIGGERTYPE)" >> $@
f2d76654 260 @echo "" >> $@
261 @echo "#################################################################" >> $@
262 @echo "# Do not modify following scripts" >> $@
263 @echo "#################################################################" >> $@
264 @echo "" >> $@
265 @echo "# here is defined the installation root directory" >> $@
266 @echo "%define pkgname %{name}-%{version}" >> $@
267 @echo "%define destdir %{prefix}" >> $@
268 @echo "" >> $@
269 @echo "# pre-compilation script: extract from tarball" >> $@
270 @echo "%prep" >> $@
271 @echo "# extract archive" >> $@
272 @echo "%setup -n %{pkgname}" >> $@
273 @echo "" >> $@
274 @echo "# compile" >> $@
275 @echo "%build" >> $@
276 @echo "export DATE_SITE=" >> $@
277 @echo ". /date/setup.sh" >> $@
278 @echo "gmake" >> $@
279 @echo "" >> $@
280 @echo "# install runtime files" >> $@
281 @echo "%install" >> $@
282 @echo "#remove install dir if existing" >> $@
283 @echo "[ -d ""$$""RPM_BUILD_ROOT ] && rm -rf ""$$""RPM_BUILD_ROOT" >> $@
284 @echo "#make install in install root directory" >> $@
285 @echo "mkdir -p ""$$""RPM_BUILD_ROOT/%{prefix}" >> $@
286 @echo "make install INSTALL_PATH=""$$""RPM_BUILD_ROOT/%{prefix}" >> $@
287 @echo "" >> $@
288 @echo "# clean RPM build files" >> $@
289 @echo "%clean" >> $@
f2d76654 290 @echo "# remove installed files" >> $@
291 @echo "rm -rf ""$$""RPM_BUILD_ROOT" >> $@
0bc0c8b0 292 @echo "# remove source files" >> $@
293 @echo "rm -rf ""$$""RPM_BUILD_DIR/%{pkgname}" >> $@
f2d76654 294 @echo "" >> $@
295 @echo "# pre-install script" >> $@
296 @echo "%pre" >> $@
297 @echo "" >> $@
298 @echo "# list of files to be installed" >> $@
299 @echo "%files" >> $@
300 @echo "%defattr (-,root,root)" >> $@
301 @echo "%{destdir}" >> $@
302 @echo "" >> $@
303 @echo "# post-install script" >> $@
304 @echo "# launched after rpm installed" >> $@
305 @echo "%post" >> $@
306 @echo "" >> $@
307 @echo "# post-uninstall script" >> $@
308 @echo "# launched after rpm removed" >> $@
309 @echo "%postun" >> $@
310
35f91121 311$(DATARGETNAME)-rpm: $(DATAR) $(DASPECFILE) $(DALIB) $(DADEP) $(EXTRAROOTLIB)
0c662ab2 312 @echo "***** Making RPMS for $(DAMODULE)$(SUBDAMODULE)$(DANAME) detector-algorithm *****"
f2d76654 313 $(MUTE)rm -rf junk
314 $(MUTE)mkdir -p junk/SOURCES junk/SPECS junk/BUILD junk/RPMS junk/SRPMS
315 $(MUTE)cp $(DATAR) junk/SOURCES
35f91121 316 $(MUTE)rpmbuild --quiet --define "_topdir $(ALICE_ROOT)/junk" --nodeps -bb $(DASPECFILE)
f2d76654 317 $(MUTE)find junk/ -name "$(DAARC)-*.rpm" -exec cp -p {} . \;
318 $(MUTE)rm -rf junk
319 @echo "***** RPMS created and put $(ALICE_ROOT) folder *****"
320
4179078a 321else
322
35f91121 323$(DATARGETNAME): $(DATARGETNAME)-clean
feddbf46 324$(DATARGETNAME)-clean: $(DATARGETNAME)-rpm
35f91121 325$(DATARGETNAME)-rpm:
4179078a 326 @echo
35f91121 327 @echo "*******************************************************************************************************"
328 @echo "* In order to build a detector-algorithm package you have run AliRoot make with the following syntax: *"
02a4345b 329 @echo "* For example: make daqDA-TPC (compiles and link all the TPC DAs and produces the corresponding DA *"
f851a9ee 330 @echo "* executables) *"
02a4345b 331 @echo "* make daqDA-MCH (MCH is the online code for MUON TRK detector. *"
332 @echo "* this target will compile and link MUON/MUONTRKda.cxx and will *"
333 @echo "* produce MUONTRKda.exe) *"
feddbf46 334 @echo "* In case you want to build the corresponding DA binary RPM, you have to add -rpm to your target name,*"
335 @echo "* for example: *"
02a4345b 336 @echo "* make daqDA-TOF-rpm (compiles, links TOF/TOFda.cxx and builds the TOF DA binary RPM) *"
337 @echo "* make daqDA-SPD-rpm (compiles, link ITS/ITSSPDda.cxx and builds ITS SPD DA binary RPM) *"
338 @echo "* For more details about the DA targets, please refer to: *"
339 @echo "* http://aliceinfo.cern.ch/static/people/cheshkov/da-packaging/ *"
35f91121 340 @echo "*******************************************************************************************************"
4179078a 341 @echo
342
4179078a 343endif
0c662ab2 344
345else
346
f851a9ee 347ifneq ($(findstring $(DAMODULE),$(MODULES)),)
348
0c662ab2 349DAMODULEALLTARGETS:=$(notdir $(wildcard $(DAMODULE)/$(DAMODULE)$(SUBDAMODULE)*da.cxx))
350
351daqDA-$(ONLINEDETECTORNAME): $(DAMODULEALLTARGETS)
352 @echo "***** All available detector-algorithms for $(ONLINEDETECTORNAME) have been built *****"
353
354%da.cxx:
355 $(MUTE)make $(patsubst %-,%-NONAME,$(addprefix daqDA-,$(subst $(DAMODULE)$(SUBDAMODULE),$(ONLINEDETECTORNAME)-,$(subst da.cxx,,$@))))
356
357daqDA-$(ONLINEDETECTORNAME)-rpm: $(addsuffix -rpm,$(DAMODULEALLTARGETS))
358 @echo "***** All available detector-algorithm RPMs for $(ONLINEDETECTORNAME) have been built *****"
359
360%da.cxx-rpm:
361 $(MUTE)make $(subst --,-NONAME-,$(addsuffix -rpm,$(addprefix daqDA-,$(subst $(DAMODULE)$(SUBDAMODULE),$(ONLINEDETECTORNAME)-,$(subst da.cxx-rpm,,$@)))))
362
363daqDA-$(ONLINEDETECTORNAME)-clean: $(addsuffix -clean,$(DAMODULEALLTARGETS))
364 @echo "***** All available detector-algorithms for $(ONLINEDETECTORNAME) have been cleaned *****"
365
366%da.cxx-clean:
367 $(MUTE)make $(subst --,-NONAME-,$(addsuffix -clean,$(addprefix daqDA-,$(subst $(DAMODULE)$(SUBDAMODULE),$(ONLINEDETECTORNAME)-,$(subst da.cxx-clean,,$@)))))
368
f851a9ee 369else
370
371daqDA-$(ONLINEDETECTORNAME): daqDA-$(ONLINEDETECTORNAME)-rpm
372daqDA-$(ONLINEDETECTORNAME)-rpm: daqDA-$(ONLINEDETECTORNAME)-clean
373daqDA-$(ONLINEDETECTORNAME)-clean:
374 @echo
375 @echo "========================================================================================================================="
376 @echo " $(ONLINEDETECTORNAME) is not a valid online detector code. "
377 @echo " The list of the valid codes is SPD SDD SSD TPC TRD TOF HMP PHS CPV PMD MCH MTR FMD T00 V00 ZDC ACO TRI EMC HLT TST GRP "
378 @echo "========================================================================================================================="
379 @echo
380
381endif
382
0c662ab2 383endif