Changing fabs into TMath::Abs
[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#-------------------------------------------------------------------------------
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
61ifdef DATE_ROOT
462ee303 62DATEFLAGS = -DALI_DATE -D${DATE_SYS} -DDATE_SYS=${DATE_SYS} -Dlong32=${DATE_LONG32} \
5fdadcc5 63 -Dlong64='${DATE_LONG64}' -DdatePointer=${DATE_POINTER} -I${DATE_COMMON_DEFS} -I${DATE_MONITOR_DIR}
b934f194 64CXXFLAGS += $(DATEFLAGS)
65CFLAGS += $(DATEFLAGS)
b8f3fa00 66CINTFLAGS += $(DATEFLAGS)
e506ace2 67DEPINC += $(DATEFLAGS)
68else
8c50acf2 69DATEFLAGS = -D`uname` -DDATE_SYS=`uname` -Dlong32='int' \
e506ace2 70 -Dlong64='long long' -DdatePointer='long'
71CXXFLAGS += $(DATEFLAGS)
72CFLAGS += $(DATEFLAGS)
73CINTFLAGS += $(DATEFLAGS)
b934f194 74DEPINC += $(DATEFLAGS)
0a1aa611 75endif
0a1aa611 76
49e7d912 77
78#-------------------------------------------------------------------------------
79# ROOT Stuff
80ROOTCONFIG := root-config
81ROOTLIBDIR := $(shell $(ROOTCONFIG) --libdir)
82ROOTPLUGDIR := $(ROOTLIBDIR)/$(dir $(shell $(ROOTCONFIG) --version))
83ROOTINCDIR := $(shell $(ROOTCONFIG) --incdir)
84ROOTCLIBS := $(shell $(ROOTCONFIG) --glibs) \
85 -lThread \
86 -lMinuit \
87 -lVMC \
88 -lEG \
89 -lGeom \
90 -lTreePlayer \
91 -lXMLIO \
92 -lProof \
93 -lProofPlayer \
94 -lMLP \
95 -lSpectrum \
96 -L$(ROOTPLUGDIR)
97
e44bc3df 98#-------------------------------------------------------------------------------
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
462ee303 106#-------------------------------------------------------------------------------
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 \
0ba1c83f 115 THijing THbtp EMCAL HBTAN \
ae675276 116 THerwig TEPEMGEN FASTSIM TPHIC RAW MONITOR ANALYSIS \
8799ea6f 117 JETAN HLT LHC ESDCheck STAT TTherminator CORRFW DPMJET TDPMjet \
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
739baceb 136ifeq ($(findstring PWG4,$(MAKECMDGOALS)),PWG4)
137ALIROOTMODULES += PWG4
138endif
139
18d2e4ee 140ifeq ($(findstring SHUTTLE,$(MAKECMDGOALS)),SHUTTLE)
141ALIROOTMODULES += SHUTTLE
142endif
143
2830f9fb 144ifeq ($(findstring Flugg,$(MAKECMDGOALS)),Flugg)
462ee303 145ALIROOTMODULES += Flugg
2830f9fb 146endif
b9d0a01d 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
6635aec0 192#-------------------------------------------------------------------------------
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" >> $@
462ee303 203#-------------------------------------------------------------------------------
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#-------------------------------------------------------------------------------
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
bdfb9593 238#-------------------------------------------------------------------------------
239# If cleaning, do not include dependencies or module.mk files.
240
241ifeq ($(CLEAN),)
242
462ee303 243#-------------------------------------------------------------------------------
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
a6e3afe8 281ROOTALIBDIR=$(shell root-config --libdir)
282
913d9052 283ALIMDCSPECFILE=$(RAWDIRO)/alimdc.spec
284ALIMDCVERSION=$(subst -,.,$(notdir $(subst /RAW/mdc.h,,$(shell svn info RAW/mdc.h | grep "URL:" | cut -d: -f3 ))))
285ALIMDCRELEASE=$(firstword $(shell svn info RAW/mdc.h | grep "Revision:" | cut -d: -f2 ))
286
287alimdc-rpm: alimdc-static alimdc-specfile
99102ed0 288 $(MUTE)rm -rf alimdc-root
289 $(MUTE)mkdir -p alimdc-root/opt/alimdc/lib
290 $(MUTE)mkdir -p alimdc-root/opt/alimdc/include
291 $(MUTE)cp RAW/mdc.h alimdc-root/opt/alimdc/include
292 $(MUTE)cp $(LIBPATH)/libAliMDC.a \
293 $(ROOTALIBDIR)/libRoot.a \
294 $(ROOTALIBDIR)/libfreetype.a $(ROOTALIBDIR)/libpcre.a \
295 alimdc-root/opt/alimdc/lib
296 $(MUTE)rm -rf RPMS
297 $(MUTE)mkdir -p RPMS/i386
913d9052 298 $(MUTE)rpmbuild --verbose --define "_topdir $(ALICE_ROOT)" --define "_tmppath $(ALICE_ROOT)" -bb $(ALIMDCSPECFILE)
99102ed0 299 $(MUTE)cp -p RPMS/i386/alimdc-*.rpm .
300 $(MUTE)rm -rf alimdc-root
301 $(MUTE)rm -rf RPMS
302 @echo "***** alimdc RPM created and put $(ALICE_ROOT) folder *****"
303
913d9052 304alimdc-specfile: $(RAWDIRO)
305 $(MUTE)rm -rf $(ALIMDCSPECFILE)
306 @echo "***** Making alimdc RPM spec-file $(ALIMDCSPECFILE) *****"
307 @echo "# RPM specfile for alimdc static libs" >> $(ALIMDCSPECFILE)
308 @echo "# Package contains both ROOT and AliRoot" >> $(ALIMDCSPECFILE)
309 @echo "# static libs needed by mStreamRecorder" >> $(ALIMDCSPECFILE)
310 @echo "# in order to ROOT-ify the incoming raw" >> $(ALIMDCSPECFILE)
311 @echo "# data" >> $(ALIMDCSPECFILE)
312 @echo "# Example how-to build alimdc RPM:" >> $(ALIMDCSPECFILE)
313 @echo "# cd $ALICE_ROOT" >> $(ALIMDCSPECFILE)
314 @echo "# make alimdc-rpm" >> $(ALIMDCSPECFILE)
315 @echo "" >> $(ALIMDCSPECFILE)
316 @echo "Summary: AliMDC static libraries" >> $(ALIMDCSPECFILE)
317 @echo "Name: alimdc" >> $(ALIMDCSPECFILE)
318 @echo "Version: $(ALIMDCVERSION)" >> $(ALIMDCSPECFILE)
319 @echo "Release: $(ALIMDCRELEASE)" >> $(ALIMDCSPECFILE)
320 @echo "# Copyright: CERN Alice Off-line" >> $(ALIMDCSPECFILE)
321 @echo "License: CERN Alice Off-line" >> $(ALIMDCSPECFILE)
322 @echo "Vendor: ALICE Core Off-line Group" >> $(ALIMDCSPECFILE)
323 @echo "URL: http://aliceinfo.cern.ch" >> $(ALIMDCSPECFILE)
324 @echo "Group: Applications/Alice" >> $(ALIMDCSPECFILE)
325 @echo "Prefix: /opt/%{name}" >> $(ALIMDCSPECFILE)
326 @echo "BuildRoot: %{_tmppath}/%{name}-root" >> $(ALIMDCSPECFILE)
327 @echo "" >> $(ALIMDCSPECFILE)
328 @echo "# automatic dependencies" >> $(ALIMDCSPECFILE)
329 @echo "AutoReqProv: yes" >> $(ALIMDCSPECFILE)
330 @echo "" >> $(ALIMDCSPECFILE)
331 @echo "# list here required RPM packages for runtime" >> $(ALIMDCSPECFILE)
332 @echo "Requires: glibc" >> $(ALIMDCSPECFILE)
333 @echo "" >> $(ALIMDCSPECFILE)
334 @echo "Provides: alimdc" >> $(ALIMDCSPECFILE)
335 @echo "" >> $(ALIMDCSPECFILE)
336 @echo "# description of the package" >> $(ALIMDCSPECFILE)
337 @echo "%description" >> $(ALIMDCSPECFILE)
338 @echo "Package contains both ROOT and AliRoot" >> $(ALIMDCSPECFILE)
339 @echo "static libs needed by mStreamRecorder" >> $(ALIMDCSPECFILE)
340 @echo "in order to ROOT-ify the incoming raw" >> $(ALIMDCSPECFILE)
341 @echo "data. The package version correspond to" >> $(ALIMDCSPECFILE)
342 @echo "the AliRoot one." >> $(ALIMDCSPECFILE)
343 @echo "" >> $(ALIMDCSPECFILE)
344 @echo "# list of files to be installed" >> $(ALIMDCSPECFILE)
345 @echo "%files" >> $(ALIMDCSPECFILE)
346 @echo "%defattr (-,root,root)" >> $(ALIMDCSPECFILE)
347 @echo "%{prefix}/lib/libAliMDC.a" >> $(ALIMDCSPECFILE)
348 @echo "%{prefix}/lib/libRoot.a" >> $(ALIMDCSPECFILE)
349 @echo "%{prefix}/lib/libpcre.a" >> $(ALIMDCSPECFILE)
350 @echo "%{prefix}/lib/libfreetype.a" >> $(ALIMDCSPECFILE)
351 @echo "%{prefix}/include/mdc.h" >> $(ALIMDCSPECFILE)
352
e66566e2 353alimdc-static: $(LIBPATH) $(BINPATH) $(RAWDatabaseALIB) $(MDCALIB) $(ESDALIB) $(STEERBaseALIB) $(alimdcCXXO)
3c1a04dc 354 $(MUTE)rm -rf $(LIBPATH)/libAliMDC.a
355 $(MUTE)rm -rf junk
e66566e2 356 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 357 $(LD) $(LDFLAGS) -o $(BINPATH)/alimdca $(alimdcCXXO) \
358 $(LIBPATH)/libAliMDC.a \
359 $(ROOTALIBDIR)/libRoot.a \
360 $(ROOTALIBDIR)/libfreetype.a $(ROOTALIBDIR)/libpcre.a \
361 -ldl
5fdadcc5 362
e5f9749d 363alilibs-static: $(LIBPATH) modules $(ALLALIBS)
364
5fdadcc5 365include build/MakefileDA
366
462ee303 367#-------------------------------------------------------------------------------
b9d0a01d 368# Single Makefile "distribution": Makefile + modules + mkdepend scripts
b934f194 369makedistr: $(MODULES)
b9d0a01d 370 tar -cvf MakeDistr.tar $(patsubst %,%/*.pkg,$(MODULES)) \
b934f194 371 Makefile create build/*
41f6cf69 372
b9d0a01d 373all: aliroot
41f6cf69 374
b934f194 375depend: $(INCLUDEFILES)
41f6cf69 376
b9d0a01d 377debug:
378ifndef ALIQUIET
379 @echo "***** Entering DEBUG mode. *****"
380endif
e1f602dc 381 @(export ALIDEBUG=YES && $(MAKE) aliroot)
b934f194 382
2d8cad5a 383profile:
384ifndef ALIQUIET
385 @echo "***** Entering PROFILE mode. *****"
386endif
e1f602dc 387 @(export ALIPROFILE=YES && $(MAKE) aliroot)
b934f194 388
b9d0a01d 389$(MODULES):
390ifndef ALIQUIET
391 @echo "***** Making $@ *****"
392endif
393 @mkdir -p $@
394
395$(BINPATH):
396ifndef ALIQUIET
397 @echo "***** Making $@ *****"
398endif
399 @mkdir -p $@
400
401$(LIBPATH):
402ifndef ALIQUIET
403 @echo "***** Making $@ *****"
404endif
405 @mkdir -p $@
406
407build/dummy.d: $(EXPORTFILES)
408 @(if [ ! -f $@ ] ; then \
409 touch $@; \
410 fi)
411
412clean:
2ea00b17 413 @echo "***** No target clean, use one of these *****"
b9d0a01d 414 @echo " clean-aliroot : Clean up all aliroot libraries"
415 @echo " clean-MODULENAME : Clean everything from module MODULENAME"
416 @echo " clean-all : Cleans up everything, including cern libraires"
1aa44b64 417 @echo " distclean : Like clean-all + clean all tgt_*'s"
b934f194 418 @echo " clean-modules : Clean all module.mk files in all modules"
b9d0a01d 419 @echo " clean-libs : Clean all libraries (not object files)"
420 @echo "********************************************"
421
422clean-all: clean-modules clean-libs clean-bins
423ifndef ALIQUIET
424 @echo "***** Cleaning up everything ****"
425endif
426 $(MUTE)rm -rf $(patsubst %,%/tgt_$(ALICE_TARGET),$(MODULES))
427 $(MUTE)rm -rf $(EXPORTDIR)
428
2ea00b17 429distclean: clean-all
1aa44b64 430 $(MUTE)rm -rf */tgt_* bin lib
2ea00b17 431
462ee303 432#-------------------------------------------------------------------------------
433# This cleans only libraries that are not CERN-libraries
b9d0a01d 434
435clean-aliroot: $(patsubst %,%/module.mk,$(ALIROOTMODULES)) $(patsubst %,clean-%,$(ALIROOTMODULES))
436
7e96fcc7 437CHECKMODULES := $(MODULES)
0b5dd071 438CHECKMODULES := $(filter-out TPHIC,$(CHECKMODULES))
af4ebdd2 439CHECKMODULES := $(filter-out LHAPDF,$(CHECKMODULES))
7e96fcc7 440CHECKMODULES := $(filter-out MICROCERN,$(CHECKMODULES))
b9d0a01d 441
b934f194 442check-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,check-%,$(CHECKMODULES))
b9d0a01d 443
5b0f3b29 444smell-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,smell-%,$(CHECKMODULES))
445
b934f194 446reveng-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,reveng-%,$(CHECKMODULES))
b9d0a01d 447
b934f194 448revdisp-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,revdisp-%,$(CHECKMODULES))
b9d0a01d 449
118c0ae6 450smell-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,smell-%,$(CHECKMODULES))
451
b9d0a01d 452clean-dicts:
453ifndef ALIQUIET
454 @echo "***** Cleaning up G__ files *****"
455endif
456 $(MUTE)rm -rf */tgt_$(ALICE_TARGET)/G__*
41f6cf69 457
b9d0a01d 458clean-modules:
459ifndef ALIQUIET
b945e71d 460 @echo "***** Cleaning up module.mk and temporary compilation files *****"
b9d0a01d 461endif
b934f194 462 $(MUTE)rm -rf $(patsubst %,%/module.mk,$(MODULES))
b945e71d 463 $(MUTE)rm -rf $(patsubst %,%/tgt_$(ALICE_TARGET),$(MODULES))
41f6cf69 464
b9d0a01d 465clean-depend:
466ifndef ALIQUIET
467 @echo "***** Cleaning up dependencies *****"
468endif
469 $(MUTE)echo rm `find . -name "*.d"`
470
471clean-objects:
472ifndef ALIQUIET
473 @echo "***** Cleaning up .o files *****"
474endif
475 $(MUTE)echo rm `find . -name "*.o"`
476
477clean-libs:
478ifndef ALIQUIET
479 @echo "***** Cleaning up library files *****"
480endif
481 $(MUTE)rm -rf lib/tgt_$(ALICE_TARGET)/*
482
483clean-bins:
484ifndef ALIQUIET
485 @echo "***** Cleaning up binary files *****"
486endif
487 $(MUTE)rm -rf bin/tgt_$(ALICE_TARGET)
d7a221d0 488
b934f194 489clean-check-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,clean-check-%,$(CHECKMODULES))
ba546cfd 490
5b0f3b29 491clean-smell-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,clean-smell-%,$(CHECKMODULES))
492
b934f194 493clean-reveng-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,clean-reveng-%,$(CHECKMODULES))
ba546cfd 494
d7a221d0 495htmldoc:
496 @rm -rf html/roothtml
497 @rm -f html/picts
498 @rm -f /tmp/macros
499 @cd html ;\
500 aliroot -q -b "mkhtml.C(0,1)" ;\
501 ls ../macros/*.C > /tmp/macros ;\
502 for i in $(ALIROOTMODULES) ; do \
503 ls ../$$i/*.C 2>/dev/null >> /tmp/macros ;\
504 done ;\
505 for i in `cat /tmp/macros` ; do \
506 echo $$i ; \
507 aliroot -b -q "mkhtml.C(\"$$i\")" > /dev/null ;\
508 done ;\
509 ./makeExampleList ;
510 @ln -s ../picts html/picts
511 @ln -s ../../picts html/roothtml/picts
512 @ln -s ../../../picts html/roothtml/src/picts
513 @ln -s ../../../picts html/roothtml/examples/picts