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