In MUONmappingLinkDef.h:
[u/mrichter/AliRoot.git] / Makefile
CommitLineData
b9d0a01d 1# Top level Makefile for AliRoot System
2#
3# Author: Jan-Erik Revsbech (revsbech@fys.ku.dk)
4# Developed on idea of Boris Polichtchouk (Boris.Polichtchouk@cern.ch), 15/4/2001
fe4da5cc 5
462ee303 6# /* $Id$ */
fe4da5cc 7
b9d0a01d 8ifdef ALIVERBOSE
9MUTE:=
10else
11MUTE:=@
12endif
fe4da5cc 13
8d7652bd 14CLEAN=$(findstring clean,$(MAKECMDGOALS))
bdfb9593 15
462ee303 16#-------------------------------------------------------------------------------
b9d0a01d 17# IRST coding rule check
462ee303 18
b9d0a01d 19IRST_INSTALLDIR=$(ALICE)/local/IRST
50a3b0ee 20IRST_CONFIG_DIR=$(IRST_INSTALLDIR)/userConfig/ALICE
b9d0a01d 21CLASSPATH=$(IRST_INSTALLDIR)
50a3b0ee 22export CLASSPATH IRST_INSTALLDIR IRST_CONFIG_DIR
b9d0a01d 23CODE_CHECK=java rules.ALICE.ALICERuleChecker
24REV_ENG=$(IRST_INSTALLDIR)/scripts/revEng.sh
fe4da5cc 25
67f2eee7 26SMELL_DETECTOR_DIR=$(IRST_INSTALLDIR)/smell-detector
118c0ae6 27
28
462ee303 29#-------------------------------------------------------------------------------
462ee303 30# Include machine dependent macros
fe4da5cc 31
b9d0a01d 32-include build/Makefile.$(ALICE_TARGET)
fe4da5cc 33
462ee303 34#-------------------------------------------------------------------------------
35# Check if called with debug
42865053 36
b9d0a01d 37ifeq ($(ALIDEBUG),YES)
b934f194 38override ALICE_TARGET := $(ALICE_TARGET)DEBUG
39FFLAGS := -g $(filter-out -O%,$(FFLAGS))
4448d4ac 40CXXFLAGS := -g $(filter-out -O%,$(CXXFLAGS))
41CFLAGS := -g $(filter-out -O%,$(CFLAGS))
b934f194 42SOFLAGS := -g $(filter-out -O%,$(SOFLAGS))
43LDFLAGS := -g $(filter-out -O%,$(LDFLAGS))
b9d0a01d 44endif
fe4da5cc 45
462ee303 46#-------------------------------------------------------------------------------
47# Check if called with profile
2d8cad5a 48
49ifeq ($(ALIPROFILE),YES)
b934f194 50override ALICE_TARGET := $(ALICE_TARGET)PROF
51FFLAGS += -pg
2d8cad5a 52CXXFLAGS += -pg
b934f194 53CFLAGS += -pg
54SOFLAGS += -pg
55LDFLAGS += -pg
2d8cad5a 56endif
2d8cad5a 57
462ee303 58#-------------------------------------------------------------------------------
59# Check if DATE is installed
b8f3fa00 60
396cdc74 61ifneq ($(shell date-config 2>&1 | grep -i usage),)
3b59469c 62DATEFLAGS = -DALI_DATE $(shell date-config --cflags | tr \" \')
b934f194 63CXXFLAGS += $(DATEFLAGS)
64CFLAGS += $(DATEFLAGS)
b8f3fa00 65CINTFLAGS += $(DATEFLAGS)
e506ace2 66DEPINC += $(DATEFLAGS)
67else
8c50acf2 68DATEFLAGS = -D`uname` -DDATE_SYS=`uname` -Dlong32='int' \
e506ace2 69 -Dlong64='long long' -DdatePointer='long'
70CXXFLAGS += $(DATEFLAGS)
71CFLAGS += $(DATEFLAGS)
72CINTFLAGS += $(DATEFLAGS)
b934f194 73DEPINC += $(DATEFLAGS)
0a1aa611 74endif
0a1aa611 75
49e7d912 76
77#-------------------------------------------------------------------------------
78# ROOT Stuff
79ROOTCONFIG := root-config
80ROOTLIBDIR := $(shell $(ROOTCONFIG) --libdir)
81ROOTPLUGDIR := $(ROOTLIBDIR)/$(dir $(shell $(ROOTCONFIG) --version))
82ROOTINCDIR := $(shell $(ROOTCONFIG) --incdir)
83ROOTCLIBS := $(shell $(ROOTCONFIG) --glibs) \
84 -lThread \
85 -lMinuit \
86 -lVMC \
87 -lEG \
88 -lGeom \
89 -lTreePlayer \
90 -lXMLIO \
1f943cd9 91 -lXMLParser \
49e7d912 92 -lProof \
93 -lProofPlayer \
94 -lMLP \
95 -lSpectrum \
96 -L$(ROOTPLUGDIR)
97
462ee303 98#-------------------------------------------------------------------------------
e44bc3df 99# Location where to install libraries and binaries and common header files
100
101LIBPATH := lib/tgt_$(ALICE_TARGET)
102BINPATH := bin/tgt_$(ALICE_TARGET)
103EXPORTDIR := $(ALICE_ROOT)/include
104BINLIBDIRS := -L$(ALICE_ROOT)/$(LIBPATH)
105
106#-------------------------------------------------------------------------------
462ee303 107# Modules to build
fe4da5cc 108
e3642d02 109ifeq (ALIVERBOSE,2)
462ee303 110$(warning MAKECMDGOALS=$(MAKECMDGOALS))
111endif
fe4da5cc 112
b934f194 113ALIROOTMODULES := STEER PHOS TRD TPC ZDC MUON PMD FMD TOF ITS \
0850b27f 114 ACORDE HMPID T0 BCM STRUCT EVGEN RALICE VZERO \
7dd2cbe4 115 THijing THbtp EMCAL \
ae675276 116 THerwig TEPEMGEN FASTSIM TPHIC RAW MONITOR ANALYSIS \
0b35d932 117 JETAN HLT LHC ESDCheck STAT TTherminator CORRFW DPMJET TDPMjet \
61d083a3 118 PWG0 PWG1 PWG2 PWG3 PWG4
8db084d0 119
49e7d912 120ifneq ($(shell $(ROOTCONFIG) --has-pythia8), no)
03229d48 121ALIROOTMODULES += PYTHIA8
122endif
123
49e7d912 124ifneq ($(shell $(ROOTCONFIG) --has-opengl), no)
3b85abd6 125ALIROOTMODULES += EVE
8db084d0 126endif
41f6cf69 127
b9d0a01d 128ifeq ($(findstring TFluka,$(MAKECMDGOALS)),TFluka)
462ee303 129ALIROOTMODULES += TFluka
b9d0a01d 130endif
131
c376a06a 132ifeq ($(findstring THydjet,$(MAKECMDGOALS)),THydjet)
133ALIROOTMODULES += THydjet
134endif
135
18d2e4ee 136ifeq ($(findstring SHUTTLE,$(MAKECMDGOALS)),SHUTTLE)
137ALIROOTMODULES += SHUTTLE
138endif
139
b1c2e580 140ifeq ($(findstring TUHKMgen,$(MAKECMDGOALS)),TUHKMgen)
141ALIROOTMODULES += TUHKMgen
2830f9fb 142endif
b9d0a01d 143
9ef1c2d9 144ifeq ($(findstring EPOS,$(MAKECMDGOALS)),EPOS)
145ALIROOTMODULES += EPOS
146endif
147
8db084d0 148CERNMODULES := LHAPDF HIJING MICROCERN HERWIG
49e7d912 149ifneq ($(wildcard $(ROOTINCDIR)/TPythia6.h),)
8db084d0 150CERNMODULES += PYTHIA6
151endif
b9d0a01d 152
462ee303 153MODULES := $(ALIROOTMODULES) $(CERNMODULES) ALIROOT
b9d0a01d 154
155MODDIRS := $(MODULES)
156
462ee303 157#-------------------------------------------------------------------------------
158# Default include dirs for C++, Fortran, Cint, and dependencies
159# The module directory will be added by each module
b9d0a01d 160
19ca05d1 161GENINC := -I$(ALICE_ROOT)/include -I$(shell root-config --incdir)
19ca05d1 162CXXFLAGS += $(GENINC)
163CXXFLAGSNO += $(GENINC)
164CINTFLAGS += $(GENINC)
165DEPINC += $(GENINC)
b9d0a01d 166
462ee303 167#-------------------------------------------------------------------------------
168# Libraries to link binaries against
169# Libraries will be linked against SHLIB
de6c7cfd 170# ROOT libraries
171
de6c7cfd 172ALILIBS := -L$(LIBDIR) -lMUON -lTPC -lPMD -lTRD -lFMD -lTOF \
b384f8a4 173 -lITS -lPHOS -lACORDE -lHMPID -lVZERO -lZDC -lSTRUCT \
0850b27f 174 -lT0 -lEVGEN -lSTEER
de6c7cfd 175
176LIBS := $(ROOTCLIBS) $(ROOTPLIBS) $(SYSLIBS)
b9d0a01d 177
6635aec0 178ARVERSIONFILE := $(EXPORTDIR)/ARVersion.h
49e7d912 179SVNREV := $(strip $(shell svn info | grep "Last Changed Rev:" | \
180 cut -d: -f2 ))
181SVNBRANCH := w$(subst //alisoft.cern.ch/AliRoot/,,\
182 $(shell svn info | grep "URL:" | cut -d: -f3 ))
6635aec0 183
462ee303 184#-------------------------------------------------------------------------------
b9d0a01d 185# default target
462ee303 186
6635aec0 187default: $(ARVERSIONFILE)
0693bbb3 188 $(MUTE)$(MAKE) aliroot
b9d0a01d 189
de6c7cfd 190FORCE:
191
462ee303 192#-------------------------------------------------------------------------------
6635aec0 193# Write header file with aliroot svn version and url
194
195$(ARVERSIONFILE): FORCE $(EXPORTDIR)
196 $(MUTE)rm -f $(ARVERSIONFILE)
197 @echo "***** Making $(ARVERSIONFILE) *****"
198 @echo "#ifndef ALIROOT_ARVersion" >> $@
199 @echo "#define ALIROOT_ARVersion" >> $@
200 @echo "#define ALIROOT_SVN_REVISION $(SVNREV)" >> $@
201 @echo "#define ALIROOT_SVN_BRANCH \"$(SVNBRANCH)\"" >> $@
202 @echo "#endif" >> $@
203#-------------------------------------------------------------------------------
462ee303 204# Each module will add to these macros
b9d0a01d 205
206ALLLIBS :=
207ALLEXECS :=
208INCLUDEFILES :=
b934f194 209BINLIBS :=
210EXPORTFILES :=
b9d0a01d 211
462ee303 212#-------------------------------------------------------------------------------
8d7652bd 213# Dependencies of module.mk files if not cleaning
b9d0a01d 214
8ef0bd93 215ifeq ($(CLEAN),)
b9d0a01d 216include build/module.dep
8d7652bd 217endif
b9d0a01d 218
462ee303 219#-------------------------------------------------------------------------------
220# Check if module.mk is present for the library
221
5386b933 222%.mk: build/module.tpl build/header.tpl build/clean.tpl share/alibtool
b9d0a01d 223ifndef ALIQUIET
224 @echo "***** Creating $@ file *****";
225endif
226 @share/alibtool mkmodule $(patsubst %/module.mk,%,$@) > $@;
b9d0a01d 227
462ee303 228#-------------------------------------------------------------------------------
462ee303 229# If making modules, not not include anything
b9d0a01d 230
bdfb9593 231ifeq ($(findstring modules,$(MAKECMDGOALS)),)
b9d0a01d 232
462ee303 233#-------------------------------------------------------------------------------
234# Include the modules
235
b934f194 236-include $(patsubst %,%/module.mk,$(MODULES))
b9d0a01d 237
462ee303 238#-------------------------------------------------------------------------------
bdfb9593 239# If cleaning, do not include dependencies or module.mk files.
240
241ifeq ($(CLEAN),)
242
243#-------------------------------------------------------------------------------
462ee303 244# Include dependencies if not making them!
b9d0a01d 245
462ee303 246ifneq ($(MAKECMDGOALS),depend)
9f1751e4 247ifneq ($(MAKECMDGOALS),)
462ee303 248
e3642d02 249ifeq (ALIVERBOSE,2)
462ee303 250$(warning INCLUDEFILES=$(INCLUDEFILES))
b9d0a01d 251endif
462ee303 252-include $(INCLUDEFILES)
b9d0a01d 253
254endif
255endif
462ee303 256endif
9f1751e4 257endif
462ee303 258
259#-------------------------------------------------------------------------------
260# Include dummy dependency file *MUST* be last includefile
b9d0a01d 261
b9d0a01d 262include build/dummy.d
b9d0a01d 263
264
462ee303 265#-------------------------------------------------------------------------------
266# Targets
b9d0a01d 267
2ea00b17 268.PHONY: alilibs aliroot makedistr clean distclean clean-all \
9f1751e4 269 htmldoc profile modules depend
b9d0a01d 270
b934f194 271modules: $(patsubst %,%/module.mk,$(MODULES))
41f6cf69 272
2d8cad5a 273ifeq ($(ALIPROFILE),YES)
3a5e5a40 274alilibs: $(LIBPATH) modules $(ALLLIBS) $(ALLALIBS)
2d8cad5a 275else
3a5e5a40 276alilibs: $(LIBPATH) modules $(ALLLIBS)
2d8cad5a 277endif
41f6cf69 278
b8205a22 279aliroot: alilibs $(BINPATH) $(ALLEXECS)
9f1751e4 280
cf5fccae 281ALIRECO.par: macros/loadlibsrec.C STEER/PROOF-INF.ALIRECO/SETUP.C
282 $(MUTE)echo "***** Creating package archive" $@ "*****"
283 $(MUTE)rm -rf ALIRECO
284 $(MUTE)mkdir -p ALIRECO/PROOF-INF
285 $(MUTE)cat $^ > ALIRECO/PROOF-INF/SETUP.C
286 (tar cfzh $@ ALIRECO 2> /dev/null && echo "Package archive" $@ "created in" $(PWD)/$@) || (tar cfzh /tmp/$@ ALIRECO 2> /dev/null && echo "Package archive" $@ "created in /tmp/"$@)
287 $(MUTE)rm -rf ALIRECO
288
a6e3afe8 289ROOTALIBDIR=$(shell root-config --libdir)
290
913d9052 291ALIMDCSPECFILE=$(RAWDIRO)/alimdc.spec
292ALIMDCVERSION=$(subst -,.,$(notdir $(subst /RAW/mdc.h,,$(shell svn info RAW/mdc.h | grep "URL:" | cut -d: -f3 ))))
293ALIMDCRELEASE=$(firstword $(shell svn info RAW/mdc.h | grep "Revision:" | cut -d: -f2 ))
294
295alimdc-rpm: alimdc-static alimdc-specfile
99102ed0 296 $(MUTE)rm -rf alimdc-root
297 $(MUTE)mkdir -p alimdc-root/opt/alimdc/lib
298 $(MUTE)mkdir -p alimdc-root/opt/alimdc/include
299 $(MUTE)cp RAW/mdc.h alimdc-root/opt/alimdc/include
300 $(MUTE)cp $(LIBPATH)/libAliMDC.a \
301 $(ROOTALIBDIR)/libRoot.a \
302 $(ROOTALIBDIR)/libfreetype.a $(ROOTALIBDIR)/libpcre.a \
303 alimdc-root/opt/alimdc/lib
304 $(MUTE)rm -rf RPMS
6603b075 305 $(MUTE)case `uname -m` in \
306 i?86*) ALIMDCARCHDIR=i386;;\
307 ia64*) ALIMDCARCHDIR=ia64;;\
308 x86_64*) ALIMDCARCHDIR=x86_64;;\
309 *) echo "Unknown architecture: `uname -m`"; exit 1;;\
310 esac; \
311 mkdir -p RPMS/$$ALIMDCARCHDIR; \
312 rpmbuild --verbose --define "_topdir $(ALICE_ROOT)" --define "_tmppath $(ALICE_ROOT)" -bb $(ALIMDCSPECFILE); \
313 cp -p RPMS/$$ALIMDCARCHDIR/alimdc-*.rpm .;
99102ed0 314 $(MUTE)rm -rf alimdc-root
315 $(MUTE)rm -rf RPMS
316 @echo "***** alimdc RPM created and put $(ALICE_ROOT) folder *****"
317
913d9052 318alimdc-specfile: $(RAWDIRO)
319 $(MUTE)rm -rf $(ALIMDCSPECFILE)
320 @echo "***** Making alimdc RPM spec-file $(ALIMDCSPECFILE) *****"
321 @echo "# RPM specfile for alimdc static libs" >> $(ALIMDCSPECFILE)
322 @echo "# Package contains both ROOT and AliRoot" >> $(ALIMDCSPECFILE)
323 @echo "# static libs needed by mStreamRecorder" >> $(ALIMDCSPECFILE)
324 @echo "# in order to ROOT-ify the incoming raw" >> $(ALIMDCSPECFILE)
325 @echo "# data" >> $(ALIMDCSPECFILE)
326 @echo "# Example how-to build alimdc RPM:" >> $(ALIMDCSPECFILE)
327 @echo "# cd $ALICE_ROOT" >> $(ALIMDCSPECFILE)
328 @echo "# make alimdc-rpm" >> $(ALIMDCSPECFILE)
329 @echo "" >> $(ALIMDCSPECFILE)
330 @echo "Summary: AliMDC static libraries" >> $(ALIMDCSPECFILE)
331 @echo "Name: alimdc" >> $(ALIMDCSPECFILE)
332 @echo "Version: $(ALIMDCVERSION)" >> $(ALIMDCSPECFILE)
333 @echo "Release: $(ALIMDCRELEASE)" >> $(ALIMDCSPECFILE)
334 @echo "# Copyright: CERN Alice Off-line" >> $(ALIMDCSPECFILE)
335 @echo "License: CERN Alice Off-line" >> $(ALIMDCSPECFILE)
336 @echo "Vendor: ALICE Core Off-line Group" >> $(ALIMDCSPECFILE)
337 @echo "URL: http://aliceinfo.cern.ch" >> $(ALIMDCSPECFILE)
338 @echo "Group: Applications/Alice" >> $(ALIMDCSPECFILE)
339 @echo "Prefix: /opt/%{name}" >> $(ALIMDCSPECFILE)
340 @echo "BuildRoot: %{_tmppath}/%{name}-root" >> $(ALIMDCSPECFILE)
341 @echo "" >> $(ALIMDCSPECFILE)
342 @echo "# automatic dependencies" >> $(ALIMDCSPECFILE)
343 @echo "AutoReqProv: yes" >> $(ALIMDCSPECFILE)
344 @echo "" >> $(ALIMDCSPECFILE)
345 @echo "# list here required RPM packages for runtime" >> $(ALIMDCSPECFILE)
346 @echo "Requires: glibc" >> $(ALIMDCSPECFILE)
347 @echo "" >> $(ALIMDCSPECFILE)
348 @echo "Provides: alimdc" >> $(ALIMDCSPECFILE)
349 @echo "" >> $(ALIMDCSPECFILE)
350 @echo "# description of the package" >> $(ALIMDCSPECFILE)
351 @echo "%description" >> $(ALIMDCSPECFILE)
352 @echo "Package contains both ROOT and AliRoot" >> $(ALIMDCSPECFILE)
353 @echo "static libs needed by mStreamRecorder" >> $(ALIMDCSPECFILE)
354 @echo "in order to ROOT-ify the incoming raw" >> $(ALIMDCSPECFILE)
355 @echo "data. The package version correspond to" >> $(ALIMDCSPECFILE)
356 @echo "the AliRoot one." >> $(ALIMDCSPECFILE)
357 @echo "" >> $(ALIMDCSPECFILE)
358 @echo "# list of files to be installed" >> $(ALIMDCSPECFILE)
359 @echo "%files" >> $(ALIMDCSPECFILE)
360 @echo "%defattr (-,root,root)" >> $(ALIMDCSPECFILE)
361 @echo "%{prefix}/lib/libAliMDC.a" >> $(ALIMDCSPECFILE)
362 @echo "%{prefix}/lib/libRoot.a" >> $(ALIMDCSPECFILE)
363 @echo "%{prefix}/lib/libpcre.a" >> $(ALIMDCSPECFILE)
364 @echo "%{prefix}/lib/libfreetype.a" >> $(ALIMDCSPECFILE)
365 @echo "%{prefix}/include/mdc.h" >> $(ALIMDCSPECFILE)
366
e66566e2 367alimdc-static: $(LIBPATH) $(BINPATH) $(RAWDatabaseALIB) $(MDCALIB) $(ESDALIB) $(STEERBaseALIB) $(alimdcCXXO)
3c1a04dc 368 $(MUTE)rm -rf $(LIBPATH)/libAliMDC.a
369 $(MUTE)rm -rf junk
e66566e2 370 mkdir junk && cd junk && ar x ../$(RAWDatabaseALIB) && ar x ../$(MDCALIB) && ar x ../$(ESDALIB) && ar x ../$(STEERBaseALIB) && ar r ../$(LIBPATH)/libAliMDC.a *.o && cd .. && rm -rf junk
a6e3afe8 371 $(LD) $(LDFLAGS) -o $(BINPATH)/alimdca $(alimdcCXXO) \
372 $(LIBPATH)/libAliMDC.a \
373 $(ROOTALIBDIR)/libRoot.a \
374 $(ROOTALIBDIR)/libfreetype.a $(ROOTALIBDIR)/libpcre.a \
f1bce174 375 -pthread -ldl
5fdadcc5 376
e5f9749d 377alilibs-static: $(LIBPATH) modules $(ALLALIBS)
378
5fdadcc5 379include build/MakefileDA
380
462ee303 381#-------------------------------------------------------------------------------
b9d0a01d 382# Single Makefile "distribution": Makefile + modules + mkdepend scripts
b934f194 383makedistr: $(MODULES)
b9d0a01d 384 tar -cvf MakeDistr.tar $(patsubst %,%/*.pkg,$(MODULES)) \
b934f194 385 Makefile create build/*
41f6cf69 386
b9d0a01d 387all: aliroot
41f6cf69 388
b934f194 389depend: $(INCLUDEFILES)
41f6cf69 390
b9d0a01d 391debug:
392ifndef ALIQUIET
393 @echo "***** Entering DEBUG mode. *****"
394endif
e1f602dc 395 @(export ALIDEBUG=YES && $(MAKE) aliroot)
b934f194 396
2d8cad5a 397profile:
398ifndef ALIQUIET
399 @echo "***** Entering PROFILE mode. *****"
400endif
e1f602dc 401 @(export ALIPROFILE=YES && $(MAKE) aliroot)
b934f194 402
b9d0a01d 403$(MODULES):
404ifndef ALIQUIET
405 @echo "***** Making $@ *****"
406endif
407 @mkdir -p $@
408
409$(BINPATH):
410ifndef ALIQUIET
411 @echo "***** Making $@ *****"
412endif
413 @mkdir -p $@
414
415$(LIBPATH):
416ifndef ALIQUIET
417 @echo "***** Making $@ *****"
418endif
419 @mkdir -p $@
420
421build/dummy.d: $(EXPORTFILES)
422 @(if [ ! -f $@ ] ; then \
423 touch $@; \
424 fi)
425
426clean:
2ea00b17 427 @echo "***** No target clean, use one of these *****"
b9d0a01d 428 @echo " clean-aliroot : Clean up all aliroot libraries"
429 @echo " clean-MODULENAME : Clean everything from module MODULENAME"
430 @echo " clean-all : Cleans up everything, including cern libraires"
1aa44b64 431 @echo " distclean : Like clean-all + clean all tgt_*'s"
b934f194 432 @echo " clean-modules : Clean all module.mk files in all modules"
b9d0a01d 433 @echo " clean-libs : Clean all libraries (not object files)"
434 @echo "********************************************"
435
436clean-all: clean-modules clean-libs clean-bins
437ifndef ALIQUIET
438 @echo "***** Cleaning up everything ****"
439endif
440 $(MUTE)rm -rf $(patsubst %,%/tgt_$(ALICE_TARGET),$(MODULES))
441 $(MUTE)rm -rf $(EXPORTDIR)
442
2ea00b17 443distclean: clean-all
1aa44b64 444 $(MUTE)rm -rf */tgt_* bin lib
2ea00b17 445
462ee303 446#-------------------------------------------------------------------------------
447# This cleans only libraries that are not CERN-libraries
b9d0a01d 448
449clean-aliroot: $(patsubst %,%/module.mk,$(ALIROOTMODULES)) $(patsubst %,clean-%,$(ALIROOTMODULES))
450
7e96fcc7 451CHECKMODULES := $(MODULES)
0b5dd071 452CHECKMODULES := $(filter-out TPHIC,$(CHECKMODULES))
af4ebdd2 453CHECKMODULES := $(filter-out LHAPDF,$(CHECKMODULES))
7e96fcc7 454CHECKMODULES := $(filter-out MICROCERN,$(CHECKMODULES))
b9d0a01d 455
b934f194 456check-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,check-%,$(CHECKMODULES))
b9d0a01d 457
5b0f3b29 458smell-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,smell-%,$(CHECKMODULES))
459
b934f194 460reveng-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,reveng-%,$(CHECKMODULES))
b9d0a01d 461
b934f194 462revdisp-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,revdisp-%,$(CHECKMODULES))
b9d0a01d 463
118c0ae6 464smell-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,smell-%,$(CHECKMODULES))
465
b9d0a01d 466clean-dicts:
467ifndef ALIQUIET
468 @echo "***** Cleaning up G__ files *****"
469endif
470 $(MUTE)rm -rf */tgt_$(ALICE_TARGET)/G__*
41f6cf69 471
b9d0a01d 472clean-modules:
473ifndef ALIQUIET
b945e71d 474 @echo "***** Cleaning up module.mk and temporary compilation files *****"
b9d0a01d 475endif
b934f194 476 $(MUTE)rm -rf $(patsubst %,%/module.mk,$(MODULES))
b945e71d 477 $(MUTE)rm -rf $(patsubst %,%/tgt_$(ALICE_TARGET),$(MODULES))
41f6cf69 478
b9d0a01d 479clean-depend:
480ifndef ALIQUIET
481 @echo "***** Cleaning up dependencies *****"
482endif
483 $(MUTE)echo rm `find . -name "*.d"`
484
485clean-objects:
486ifndef ALIQUIET
487 @echo "***** Cleaning up .o files *****"
488endif
489 $(MUTE)echo rm `find . -name "*.o"`
490
491clean-libs:
492ifndef ALIQUIET
493 @echo "***** Cleaning up library files *****"
494endif
495 $(MUTE)rm -rf lib/tgt_$(ALICE_TARGET)/*
496
497clean-bins:
498ifndef ALIQUIET
499 @echo "***** Cleaning up binary files *****"
500endif
501 $(MUTE)rm -rf bin/tgt_$(ALICE_TARGET)
d7a221d0 502
b934f194 503clean-check-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,clean-check-%,$(CHECKMODULES))
ba546cfd 504
5b0f3b29 505clean-smell-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,clean-smell-%,$(CHECKMODULES))
506
b934f194 507clean-reveng-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,clean-reveng-%,$(CHECKMODULES))
ba546cfd 508
d7a221d0 509htmldoc:
510 @rm -rf html/roothtml
511 @rm -f html/picts
512 @rm -f /tmp/macros
513 @cd html ;\
514 aliroot -q -b "mkhtml.C(0,1)" ;\
515 ls ../macros/*.C > /tmp/macros ;\
516 for i in $(ALIROOTMODULES) ; do \
517 ls ../$$i/*.C 2>/dev/null >> /tmp/macros ;\
518 done ;\
519 for i in `cat /tmp/macros` ; do \
520 echo $$i ; \
521 aliroot -b -q "mkhtml.C(\"$$i\")" > /dev/null ;\
522 done ;\
523 ./makeExampleList ;
524 @ln -s ../picts html/picts
525 @ln -s ../../picts html/roothtml/picts
526 @ln -s ../../../picts html/roothtml/src/picts
527 @ln -s ../../../picts html/roothtml/examples/picts