Changing handling of the errors according to discussion following
[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
fb1102ea 120# Additional generators
121ALIROOTMODULES += TUHKMgen
122ALIROOTMODULES += EPOS
123
49e7d912 124ifneq ($(shell $(ROOTCONFIG) --has-pythia8), no)
03229d48 125ALIROOTMODULES += PYTHIA8
126endif
127
49e7d912 128ifneq ($(shell $(ROOTCONFIG) --has-opengl), no)
3b85abd6 129ALIROOTMODULES += EVE
8db084d0 130endif
41f6cf69 131
b9d0a01d 132ifeq ($(findstring TFluka,$(MAKECMDGOALS)),TFluka)
462ee303 133ALIROOTMODULES += TFluka
b9d0a01d 134endif
135
c376a06a 136ifeq ($(findstring THydjet,$(MAKECMDGOALS)),THydjet)
137ALIROOTMODULES += THydjet
138endif
139
18d2e4ee 140ifeq ($(findstring SHUTTLE,$(MAKECMDGOALS)),SHUTTLE)
141ALIROOTMODULES += SHUTTLE
142endif
143
8db084d0 144CERNMODULES := LHAPDF HIJING MICROCERN HERWIG
49e7d912 145ifneq ($(wildcard $(ROOTINCDIR)/TPythia6.h),)
8db084d0 146CERNMODULES += PYTHIA6
147endif
b9d0a01d 148
462ee303 149MODULES := $(ALIROOTMODULES) $(CERNMODULES) ALIROOT
b9d0a01d 150
151MODDIRS := $(MODULES)
152
462ee303 153#-------------------------------------------------------------------------------
154# Default include dirs for C++, Fortran, Cint, and dependencies
155# The module directory will be added by each module
b9d0a01d 156
19ca05d1 157GENINC := -I$(ALICE_ROOT)/include -I$(shell root-config --incdir)
19ca05d1 158CXXFLAGS += $(GENINC)
159CXXFLAGSNO += $(GENINC)
160CINTFLAGS += $(GENINC)
161DEPINC += $(GENINC)
b9d0a01d 162
462ee303 163#-------------------------------------------------------------------------------
164# Libraries to link binaries against
165# Libraries will be linked against SHLIB
de6c7cfd 166# ROOT libraries
167
de6c7cfd 168ALILIBS := -L$(LIBDIR) -lMUON -lTPC -lPMD -lTRD -lFMD -lTOF \
b384f8a4 169 -lITS -lPHOS -lACORDE -lHMPID -lVZERO -lZDC -lSTRUCT \
0850b27f 170 -lT0 -lEVGEN -lSTEER
de6c7cfd 171
172LIBS := $(ROOTCLIBS) $(ROOTPLIBS) $(SYSLIBS)
b9d0a01d 173
6635aec0 174ARVERSIONFILE := $(EXPORTDIR)/ARVersion.h
54c08fbf 175SVNREV := $(strip $(shell LANG=C svn info | grep "Last Changed Rev:" | \
49e7d912 176 cut -d: -f2 ))
d33faa69 177SVNBRANCH := $(subst //alisoft.cern.ch/AliRoot/,,$(shell svn info | grep "URL:" | cut -d: -f3 ))
6635aec0 178
462ee303 179#-------------------------------------------------------------------------------
b9d0a01d 180# default target
462ee303 181
6635aec0 182default: $(ARVERSIONFILE)
0693bbb3 183 $(MUTE)$(MAKE) aliroot
b9d0a01d 184
462ee303 185#-------------------------------------------------------------------------------
6635aec0 186# Write header file with aliroot svn version and url
187
d33faa69 188$(ARVERSIONFILE): $(ALICE_ROOT)/.svn/entries $(EXPORTDIR)
6635aec0 189 $(MUTE)rm -f $(ARVERSIONFILE)
190 @echo "***** Making $(ARVERSIONFILE) *****"
191 @echo "#ifndef ALIROOT_ARVersion" >> $@
192 @echo "#define ALIROOT_ARVersion" >> $@
193 @echo "#define ALIROOT_SVN_REVISION $(SVNREV)" >> $@
194 @echo "#define ALIROOT_SVN_BRANCH \"$(SVNBRANCH)\"" >> $@
195 @echo "#endif" >> $@
196#-------------------------------------------------------------------------------
462ee303 197# Each module will add to these macros
b9d0a01d 198
199ALLLIBS :=
200ALLEXECS :=
201INCLUDEFILES :=
b934f194 202BINLIBS :=
203EXPORTFILES :=
b9d0a01d 204
462ee303 205#-------------------------------------------------------------------------------
8d7652bd 206# Dependencies of module.mk files if not cleaning
b9d0a01d 207
8ef0bd93 208ifeq ($(CLEAN),)
b9d0a01d 209include build/module.dep
8d7652bd 210endif
b9d0a01d 211
462ee303 212#-------------------------------------------------------------------------------
213# Check if module.mk is present for the library
214
5386b933 215%.mk: build/module.tpl build/header.tpl build/clean.tpl share/alibtool
b9d0a01d 216ifndef ALIQUIET
217 @echo "***** Creating $@ file *****";
218endif
219 @share/alibtool mkmodule $(patsubst %/module.mk,%,$@) > $@;
b9d0a01d 220
462ee303 221#-------------------------------------------------------------------------------
462ee303 222# If making modules, not not include anything
b9d0a01d 223
bdfb9593 224ifeq ($(findstring modules,$(MAKECMDGOALS)),)
b9d0a01d 225
462ee303 226#-------------------------------------------------------------------------------
227# Include the modules
228
b934f194 229-include $(patsubst %,%/module.mk,$(MODULES))
b9d0a01d 230
462ee303 231#-------------------------------------------------------------------------------
bdfb9593 232# If cleaning, do not include dependencies or module.mk files.
233
234ifeq ($(CLEAN),)
235
236#-------------------------------------------------------------------------------
462ee303 237# Include dependencies if not making them!
b9d0a01d 238
462ee303 239ifneq ($(MAKECMDGOALS),depend)
9f1751e4 240ifneq ($(MAKECMDGOALS),)
462ee303 241
e3642d02 242ifeq (ALIVERBOSE,2)
462ee303 243$(warning INCLUDEFILES=$(INCLUDEFILES))
b9d0a01d 244endif
462ee303 245-include $(INCLUDEFILES)
b9d0a01d 246
247endif
248endif
462ee303 249endif
9f1751e4 250endif
462ee303 251
252#-------------------------------------------------------------------------------
253# Include dummy dependency file *MUST* be last includefile
b9d0a01d 254
b9d0a01d 255include build/dummy.d
b9d0a01d 256
257
462ee303 258#-------------------------------------------------------------------------------
259# Targets
b9d0a01d 260
2ea00b17 261.PHONY: alilibs aliroot makedistr clean distclean clean-all \
9f1751e4 262 htmldoc profile modules depend
b9d0a01d 263
b934f194 264modules: $(patsubst %,%/module.mk,$(MODULES))
41f6cf69 265
2d8cad5a 266ifeq ($(ALIPROFILE),YES)
3a5e5a40 267alilibs: $(LIBPATH) modules $(ALLLIBS) $(ALLALIBS)
2d8cad5a 268else
3a5e5a40 269alilibs: $(LIBPATH) modules $(ALLLIBS)
2d8cad5a 270endif
41f6cf69 271
b8205a22 272aliroot: alilibs $(BINPATH) $(ALLEXECS)
9f1751e4 273
cf5fccae 274ALIRECO.par: macros/loadlibsrec.C STEER/PROOF-INF.ALIRECO/SETUP.C
275 $(MUTE)echo "***** Creating package archive" $@ "*****"
276 $(MUTE)rm -rf ALIRECO
277 $(MUTE)mkdir -p ALIRECO/PROOF-INF
278 $(MUTE)cat $^ > ALIRECO/PROOF-INF/SETUP.C
279 (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/"$@)
280 $(MUTE)rm -rf ALIRECO
281
a6e3afe8 282ROOTALIBDIR=$(shell root-config --libdir)
283
913d9052 284ALIMDCSPECFILE=$(RAWDIRO)/alimdc.spec
285ALIMDCVERSION=$(subst -,.,$(notdir $(subst /RAW/mdc.h,,$(shell svn info RAW/mdc.h | grep "URL:" | cut -d: -f3 ))))
286ALIMDCRELEASE=$(firstword $(shell svn info RAW/mdc.h | grep "Revision:" | cut -d: -f2 ))
287
288alimdc-rpm: alimdc-static alimdc-specfile
99102ed0 289 $(MUTE)rm -rf alimdc-root
290 $(MUTE)mkdir -p alimdc-root/opt/alimdc/lib
291 $(MUTE)mkdir -p alimdc-root/opt/alimdc/include
292 $(MUTE)cp RAW/mdc.h alimdc-root/opt/alimdc/include
293 $(MUTE)cp $(LIBPATH)/libAliMDC.a \
294 $(ROOTALIBDIR)/libRoot.a \
295 $(ROOTALIBDIR)/libfreetype.a $(ROOTALIBDIR)/libpcre.a \
296 alimdc-root/opt/alimdc/lib
297 $(MUTE)rm -rf RPMS
6603b075 298 $(MUTE)case `uname -m` in \
299 i?86*) ALIMDCARCHDIR=i386;;\
300 ia64*) ALIMDCARCHDIR=ia64;;\
301 x86_64*) ALIMDCARCHDIR=x86_64;;\
302 *) echo "Unknown architecture: `uname -m`"; exit 1;;\
303 esac; \
304 mkdir -p RPMS/$$ALIMDCARCHDIR; \
305 rpmbuild --verbose --define "_topdir $(ALICE_ROOT)" --define "_tmppath $(ALICE_ROOT)" -bb $(ALIMDCSPECFILE); \
306 cp -p RPMS/$$ALIMDCARCHDIR/alimdc-*.rpm .;
99102ed0 307 $(MUTE)rm -rf alimdc-root
308 $(MUTE)rm -rf RPMS
309 @echo "***** alimdc RPM created and put $(ALICE_ROOT) folder *****"
310
913d9052 311alimdc-specfile: $(RAWDIRO)
312 $(MUTE)rm -rf $(ALIMDCSPECFILE)
313 @echo "***** Making alimdc RPM spec-file $(ALIMDCSPECFILE) *****"
314 @echo "# RPM specfile for alimdc static libs" >> $(ALIMDCSPECFILE)
315 @echo "# Package contains both ROOT and AliRoot" >> $(ALIMDCSPECFILE)
316 @echo "# static libs needed by mStreamRecorder" >> $(ALIMDCSPECFILE)
317 @echo "# in order to ROOT-ify the incoming raw" >> $(ALIMDCSPECFILE)
318 @echo "# data" >> $(ALIMDCSPECFILE)
319 @echo "# Example how-to build alimdc RPM:" >> $(ALIMDCSPECFILE)
320 @echo "# cd $ALICE_ROOT" >> $(ALIMDCSPECFILE)
321 @echo "# make alimdc-rpm" >> $(ALIMDCSPECFILE)
322 @echo "" >> $(ALIMDCSPECFILE)
323 @echo "Summary: AliMDC static libraries" >> $(ALIMDCSPECFILE)
324 @echo "Name: alimdc" >> $(ALIMDCSPECFILE)
325 @echo "Version: $(ALIMDCVERSION)" >> $(ALIMDCSPECFILE)
326 @echo "Release: $(ALIMDCRELEASE)" >> $(ALIMDCSPECFILE)
327 @echo "# Copyright: CERN Alice Off-line" >> $(ALIMDCSPECFILE)
328 @echo "License: CERN Alice Off-line" >> $(ALIMDCSPECFILE)
329 @echo "Vendor: ALICE Core Off-line Group" >> $(ALIMDCSPECFILE)
330 @echo "URL: http://aliceinfo.cern.ch" >> $(ALIMDCSPECFILE)
331 @echo "Group: Applications/Alice" >> $(ALIMDCSPECFILE)
332 @echo "Prefix: /opt/%{name}" >> $(ALIMDCSPECFILE)
333 @echo "BuildRoot: %{_tmppath}/%{name}-root" >> $(ALIMDCSPECFILE)
334 @echo "" >> $(ALIMDCSPECFILE)
335 @echo "# automatic dependencies" >> $(ALIMDCSPECFILE)
336 @echo "AutoReqProv: yes" >> $(ALIMDCSPECFILE)
337 @echo "" >> $(ALIMDCSPECFILE)
338 @echo "# list here required RPM packages for runtime" >> $(ALIMDCSPECFILE)
339 @echo "Requires: glibc" >> $(ALIMDCSPECFILE)
340 @echo "" >> $(ALIMDCSPECFILE)
341 @echo "Provides: alimdc" >> $(ALIMDCSPECFILE)
342 @echo "" >> $(ALIMDCSPECFILE)
343 @echo "# description of the package" >> $(ALIMDCSPECFILE)
344 @echo "%description" >> $(ALIMDCSPECFILE)
345 @echo "Package contains both ROOT and AliRoot" >> $(ALIMDCSPECFILE)
346 @echo "static libs needed by mStreamRecorder" >> $(ALIMDCSPECFILE)
347 @echo "in order to ROOT-ify the incoming raw" >> $(ALIMDCSPECFILE)
348 @echo "data. The package version correspond to" >> $(ALIMDCSPECFILE)
349 @echo "the AliRoot one." >> $(ALIMDCSPECFILE)
350 @echo "" >> $(ALIMDCSPECFILE)
351 @echo "# list of files to be installed" >> $(ALIMDCSPECFILE)
352 @echo "%files" >> $(ALIMDCSPECFILE)
353 @echo "%defattr (-,root,root)" >> $(ALIMDCSPECFILE)
354 @echo "%{prefix}/lib/libAliMDC.a" >> $(ALIMDCSPECFILE)
355 @echo "%{prefix}/lib/libRoot.a" >> $(ALIMDCSPECFILE)
356 @echo "%{prefix}/lib/libpcre.a" >> $(ALIMDCSPECFILE)
357 @echo "%{prefix}/lib/libfreetype.a" >> $(ALIMDCSPECFILE)
358 @echo "%{prefix}/include/mdc.h" >> $(ALIMDCSPECFILE)
359
e66566e2 360alimdc-static: $(LIBPATH) $(BINPATH) $(RAWDatabaseALIB) $(MDCALIB) $(ESDALIB) $(STEERBaseALIB) $(alimdcCXXO)
3c1a04dc 361 $(MUTE)rm -rf $(LIBPATH)/libAliMDC.a
362 $(MUTE)rm -rf junk
e66566e2 363 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 364 $(LD) $(LDFLAGS) -o $(BINPATH)/alimdca $(alimdcCXXO) \
365 $(LIBPATH)/libAliMDC.a \
366 $(ROOTALIBDIR)/libRoot.a \
367 $(ROOTALIBDIR)/libfreetype.a $(ROOTALIBDIR)/libpcre.a \
f1bce174 368 -pthread -ldl
5fdadcc5 369
e5f9749d 370alilibs-static: $(LIBPATH) modules $(ALLALIBS)
371
5fdadcc5 372include build/MakefileDA
373
462ee303 374#-------------------------------------------------------------------------------
b9d0a01d 375# Single Makefile "distribution": Makefile + modules + mkdepend scripts
b934f194 376makedistr: $(MODULES)
b9d0a01d 377 tar -cvf MakeDistr.tar $(patsubst %,%/*.pkg,$(MODULES)) \
b934f194 378 Makefile create build/*
41f6cf69 379
b9d0a01d 380all: aliroot
41f6cf69 381
b934f194 382depend: $(INCLUDEFILES)
41f6cf69 383
b9d0a01d 384debug:
385ifndef ALIQUIET
386 @echo "***** Entering DEBUG mode. *****"
387endif
e1f602dc 388 @(export ALIDEBUG=YES && $(MAKE) aliroot)
b934f194 389
2d8cad5a 390profile:
391ifndef ALIQUIET
392 @echo "***** Entering PROFILE mode. *****"
393endif
e1f602dc 394 @(export ALIPROFILE=YES && $(MAKE) aliroot)
b934f194 395
b9d0a01d 396$(MODULES):
397ifndef ALIQUIET
398 @echo "***** Making $@ *****"
399endif
400 @mkdir -p $@
401
402$(BINPATH):
403ifndef ALIQUIET
404 @echo "***** Making $@ *****"
405endif
406 @mkdir -p $@
407
408$(LIBPATH):
409ifndef ALIQUIET
410 @echo "***** Making $@ *****"
411endif
412 @mkdir -p $@
413
414build/dummy.d: $(EXPORTFILES)
415 @(if [ ! -f $@ ] ; then \
416 touch $@; \
417 fi)
418
419clean:
2ea00b17 420 @echo "***** No target clean, use one of these *****"
b9d0a01d 421 @echo " clean-aliroot : Clean up all aliroot libraries"
422 @echo " clean-MODULENAME : Clean everything from module MODULENAME"
423 @echo " clean-all : Cleans up everything, including cern libraires"
1aa44b64 424 @echo " distclean : Like clean-all + clean all tgt_*'s"
b934f194 425 @echo " clean-modules : Clean all module.mk files in all modules"
b9d0a01d 426 @echo " clean-libs : Clean all libraries (not object files)"
427 @echo "********************************************"
428
429clean-all: clean-modules clean-libs clean-bins
430ifndef ALIQUIET
431 @echo "***** Cleaning up everything ****"
432endif
433 $(MUTE)rm -rf $(patsubst %,%/tgt_$(ALICE_TARGET),$(MODULES))
434 $(MUTE)rm -rf $(EXPORTDIR)
435
2ea00b17 436distclean: clean-all
1aa44b64 437 $(MUTE)rm -rf */tgt_* bin lib
2ea00b17 438
462ee303 439#-------------------------------------------------------------------------------
440# This cleans only libraries that are not CERN-libraries
b9d0a01d 441
442clean-aliroot: $(patsubst %,%/module.mk,$(ALIROOTMODULES)) $(patsubst %,clean-%,$(ALIROOTMODULES))
443
7e96fcc7 444CHECKMODULES := $(MODULES)
0b5dd071 445CHECKMODULES := $(filter-out TPHIC,$(CHECKMODULES))
af4ebdd2 446CHECKMODULES := $(filter-out LHAPDF,$(CHECKMODULES))
7e96fcc7 447CHECKMODULES := $(filter-out MICROCERN,$(CHECKMODULES))
b9d0a01d 448
b934f194 449check-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,check-%,$(CHECKMODULES))
b9d0a01d 450
5b0f3b29 451smell-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,smell-%,$(CHECKMODULES))
452
b934f194 453reveng-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,reveng-%,$(CHECKMODULES))
b9d0a01d 454
b934f194 455revdisp-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,revdisp-%,$(CHECKMODULES))
b9d0a01d 456
118c0ae6 457smell-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,smell-%,$(CHECKMODULES))
458
b9d0a01d 459clean-dicts:
460ifndef ALIQUIET
461 @echo "***** Cleaning up G__ files *****"
462endif
463 $(MUTE)rm -rf */tgt_$(ALICE_TARGET)/G__*
41f6cf69 464
b9d0a01d 465clean-modules:
466ifndef ALIQUIET
b945e71d 467 @echo "***** Cleaning up module.mk and temporary compilation files *****"
b9d0a01d 468endif
b934f194 469 $(MUTE)rm -rf $(patsubst %,%/module.mk,$(MODULES))
b945e71d 470 $(MUTE)rm -rf $(patsubst %,%/tgt_$(ALICE_TARGET),$(MODULES))
41f6cf69 471
b9d0a01d 472clean-depend:
473ifndef ALIQUIET
474 @echo "***** Cleaning up dependencies *****"
475endif
476 $(MUTE)echo rm `find . -name "*.d"`
477
478clean-objects:
479ifndef ALIQUIET
480 @echo "***** Cleaning up .o files *****"
481endif
482 $(MUTE)echo rm `find . -name "*.o"`
483
484clean-libs:
485ifndef ALIQUIET
486 @echo "***** Cleaning up library files *****"
487endif
488 $(MUTE)rm -rf lib/tgt_$(ALICE_TARGET)/*
489
490clean-bins:
491ifndef ALIQUIET
492 @echo "***** Cleaning up binary files *****"
493endif
494 $(MUTE)rm -rf bin/tgt_$(ALICE_TARGET)
d7a221d0 495
b934f194 496clean-check-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,clean-check-%,$(CHECKMODULES))
ba546cfd 497
5b0f3b29 498clean-smell-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,clean-smell-%,$(CHECKMODULES))
499
b934f194 500clean-reveng-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,clean-reveng-%,$(CHECKMODULES))
ba546cfd 501
d7a221d0 502htmldoc:
503 @rm -rf html/roothtml
504 @rm -f html/picts
505 @rm -f /tmp/macros
506 @cd html ;\
507 aliroot -q -b "mkhtml.C(0,1)" ;\
508 ls ../macros/*.C > /tmp/macros ;\
509 for i in $(ALIROOTMODULES) ; do \
510 ls ../$$i/*.C 2>/dev/null >> /tmp/macros ;\
511 done ;\
512 for i in `cat /tmp/macros` ; do \
513 echo $$i ; \
514 aliroot -b -q "mkhtml.C(\"$$i\")" > /dev/null ;\
515 done ;\
516 ./makeExampleList ;
517 @ln -s ../picts html/picts
518 @ln -s ../../picts html/roothtml/picts
519 @ln -s ../../../picts html/roothtml/src/picts
520 @ln -s ../../../picts html/roothtml/examples/picts