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