added key substition
[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
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
462ee303 77#-------------------------------------------------------------------------------
e44bc3df 78# Location where to install libraries and binaries and common header files
79
80LIBPATH := lib/tgt_$(ALICE_TARGET)
81BINPATH := bin/tgt_$(ALICE_TARGET)
82EXPORTDIR := $(ALICE_ROOT)/include
83BINLIBDIRS := -L$(ALICE_ROOT)/$(LIBPATH)
84
85#-------------------------------------------------------------------------------
462ee303 86# Modules to build
fe4da5cc 87
e3642d02 88ifeq (ALIVERBOSE,2)
462ee303 89$(warning MAKECMDGOALS=$(MAKECMDGOALS))
90endif
fe4da5cc 91
b934f194 92ALIROOTMODULES := STEER PHOS TRD TPC ZDC MUON PMD FMD TOF ITS \
0850b27f 93 ACORDE HMPID T0 BCM STRUCT EVGEN RALICE VZERO \
e756ece8 94 THijing MEVSIM TMEVSIM THbtp HBTP EMCAL HBTAN \
92b443ef 95 THerwig TEPEMGEN EPEMGEN FASTSIM TPHIC RAW MONITOR ANALYSIS \
18e252bc 96 JETAN HLT LHC ESDCheck STAT TTherminator CORRFW
8db084d0 97
98ifneq ($(wildcard $(ROOTSYS)/include/TGLIncludes.h),)
3b85abd6 99ALIROOTMODULES += EVE
8db084d0 100endif
41f6cf69 101
b9d0a01d 102ifeq ($(findstring TFluka,$(MAKECMDGOALS)),TFluka)
462ee303 103ALIROOTMODULES += TFluka
b9d0a01d 104endif
105
c376a06a 106ifeq ($(findstring THydjet,$(MAKECMDGOALS)),THydjet)
107ALIROOTMODULES += THydjet
108endif
109
18d2e4ee 110ifeq ($(findstring PWG0,$(MAKECMDGOALS)),PWG0)
111ALIROOTMODULES += PWG0
112endif
113
940de486 114ifeq ($(findstring PWG1,$(MAKECMDGOALS)),PWG1)
115ALIROOTMODULES += PWG1
116endif
117
04d2c4d5 118ifeq ($(findstring PWG2,$(MAKECMDGOALS)),PWG2)
119ALIROOTMODULES += PWG2
120endif
121
f3fc258a 122ifeq ($(findstring PWG3,$(MAKECMDGOALS)),PWG3)
123ALIROOTMODULES += PWG3
124endif
125
739baceb 126ifeq ($(findstring PWG4,$(MAKECMDGOALS)),PWG4)
127ALIROOTMODULES += PWG4
128endif
129
18d2e4ee 130ifeq ($(findstring SHUTTLE,$(MAKECMDGOALS)),SHUTTLE)
131ALIROOTMODULES += SHUTTLE
132endif
133
2830f9fb 134ifeq ($(findstring Flugg,$(MAKECMDGOALS)),Flugg)
462ee303 135ALIROOTMODULES += Flugg
2830f9fb 136endif
b9d0a01d 137
8db084d0 138CERNMODULES := LHAPDF HIJING MICROCERN HERWIG
139
140ifneq ($(wildcard $(ROOTSYS)/include/TPythia6.h),)
141CERNMODULES += PYTHIA6
142endif
b9d0a01d 143
462ee303 144MODULES := $(ALIROOTMODULES) $(CERNMODULES) ALIROOT
b9d0a01d 145
146MODDIRS := $(MODULES)
147
462ee303 148#-------------------------------------------------------------------------------
149# Default include dirs for C++, Fortran, Cint, and dependencies
150# The module directory will be added by each module
b9d0a01d 151
19ca05d1 152GENINC := -I$(ALICE_ROOT)/include -I$(shell root-config --incdir)
19ca05d1 153CXXFLAGS += $(GENINC)
154CXXFLAGSNO += $(GENINC)
155CINTFLAGS += $(GENINC)
156DEPINC += $(GENINC)
b9d0a01d 157
462ee303 158#-------------------------------------------------------------------------------
159# Libraries to link binaries against
160# Libraries will be linked against SHLIB
de6c7cfd 161# ROOT libraries
162
683e665e 163ROOTCLIBS := $(shell root-config --glibs) -lThread -lMinuit -lHtml -lVMC -lEG -lGeom -lTreePlayer -lXMLIO -lProof -lProofPlayer -lMLP \
164 -lSpectrum
b9d0a01d 165
3df2764f 166ROOTPLIBS := -lEGPythia6
de6c7cfd 167
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
175SVNREV := $(strip $(shell svn info | grep "Last Changed Rev:" | cut -d: -f2 ))
176SVNBRANCH := $(subst //alisoft.cern.ch/AliRoot/,,$(shell svn info | grep "URL:" | cut -d: -f3 ))
177
462ee303 178#-------------------------------------------------------------------------------
b9d0a01d 179# default target
462ee303 180
6635aec0 181default: $(ARVERSIONFILE)
0693bbb3 182 $(MUTE)$(MAKE) aliroot
b9d0a01d 183
de6c7cfd 184FORCE:
185
462ee303 186#-------------------------------------------------------------------------------
6635aec0 187# Write header file with aliroot svn version and url
188
189$(ARVERSIONFILE): FORCE $(EXPORTDIR)
190 $(MUTE)rm -f $(ARVERSIONFILE)
191 @echo "***** Making $(ARVERSIONFILE) *****"
192 @echo "#ifndef ALIROOT_ARVersion" >> $@
193 @echo "#define ALIROOT_ARVersion" >> $@
194 @echo "#define ALIROOT_SVN_REVISION $(SVNREV)" >> $@
195 @echo "#define ALIROOT_SVN_BRANCH \"$(SVNBRANCH)\"" >> $@
196 @echo "#endif" >> $@
197#-------------------------------------------------------------------------------
462ee303 198# Each module will add to these macros
b9d0a01d 199
200ALLLIBS :=
201ALLEXECS :=
202INCLUDEFILES :=
b934f194 203BINLIBS :=
204EXPORTFILES :=
b9d0a01d 205
462ee303 206#-------------------------------------------------------------------------------
8d7652bd 207# Dependencies of module.mk files if not cleaning
b9d0a01d 208
8ef0bd93 209ifeq ($(CLEAN),)
b9d0a01d 210include build/module.dep
8d7652bd 211endif
b9d0a01d 212
462ee303 213#-------------------------------------------------------------------------------
214# Check if module.mk is present for the library
215
5386b933 216%.mk: build/module.tpl build/header.tpl build/clean.tpl share/alibtool
b9d0a01d 217ifndef ALIQUIET
218 @echo "***** Creating $@ file *****";
219endif
220 @share/alibtool mkmodule $(patsubst %/module.mk,%,$@) > $@;
b9d0a01d 221
462ee303 222#-------------------------------------------------------------------------------
462ee303 223# If making modules, not not include anything
b9d0a01d 224
bdfb9593 225ifeq ($(findstring modules,$(MAKECMDGOALS)),)
b9d0a01d 226
462ee303 227#-------------------------------------------------------------------------------
228# Include the modules
229
b934f194 230-include $(patsubst %,%/module.mk,$(MODULES))
b9d0a01d 231
462ee303 232#-------------------------------------------------------------------------------
bdfb9593 233# If cleaning, do not include dependencies or module.mk files.
234
235ifeq ($(CLEAN),)
236
237#-------------------------------------------------------------------------------
462ee303 238# Include dependencies if not making them!
b9d0a01d 239
462ee303 240ifneq ($(MAKECMDGOALS),depend)
9f1751e4 241ifneq ($(MAKECMDGOALS),)
462ee303 242
e3642d02 243ifeq (ALIVERBOSE,2)
462ee303 244$(warning INCLUDEFILES=$(INCLUDEFILES))
b9d0a01d 245endif
462ee303 246-include $(INCLUDEFILES)
b9d0a01d 247
248endif
249endif
462ee303 250endif
9f1751e4 251endif
462ee303 252
253#-------------------------------------------------------------------------------
254# Include dummy dependency file *MUST* be last includefile
b9d0a01d 255
b9d0a01d 256include build/dummy.d
b9d0a01d 257
258
462ee303 259#-------------------------------------------------------------------------------
260# Targets
b9d0a01d 261
2ea00b17 262.PHONY: alilibs aliroot makedistr clean distclean clean-all \
9f1751e4 263 htmldoc profile modules depend
b9d0a01d 264
b934f194 265modules: $(patsubst %,%/module.mk,$(MODULES))
41f6cf69 266
2d8cad5a 267ifeq ($(ALIPROFILE),YES)
3a5e5a40 268alilibs: $(LIBPATH) modules $(ALLLIBS) $(ALLALIBS)
2d8cad5a 269else
3a5e5a40 270alilibs: $(LIBPATH) modules $(ALLLIBS)
2d8cad5a 271endif
41f6cf69 272
b8205a22 273aliroot: alilibs $(BINPATH) $(ALLEXECS)
9f1751e4 274
a6e3afe8 275ROOTALIBDIR=$(shell root-config --libdir)
276
913d9052 277ALIMDCSPECFILE=$(RAWDIRO)/alimdc.spec
278ALIMDCVERSION=$(subst -,.,$(notdir $(subst /RAW/mdc.h,,$(shell svn info RAW/mdc.h | grep "URL:" | cut -d: -f3 ))))
279ALIMDCRELEASE=$(firstword $(shell svn info RAW/mdc.h | grep "Revision:" | cut -d: -f2 ))
280
281alimdc-rpm: alimdc-static alimdc-specfile
99102ed0 282 $(MUTE)rm -rf alimdc-root
283 $(MUTE)mkdir -p alimdc-root/opt/alimdc/lib
284 $(MUTE)mkdir -p alimdc-root/opt/alimdc/include
285 $(MUTE)cp RAW/mdc.h alimdc-root/opt/alimdc/include
286 $(MUTE)cp $(LIBPATH)/libAliMDC.a \
287 $(ROOTALIBDIR)/libRoot.a \
288 $(ROOTALIBDIR)/libfreetype.a $(ROOTALIBDIR)/libpcre.a \
289 alimdc-root/opt/alimdc/lib
290 $(MUTE)rm -rf RPMS
291 $(MUTE)mkdir -p RPMS/i386
913d9052 292 $(MUTE)rpmbuild --verbose --define "_topdir $(ALICE_ROOT)" --define "_tmppath $(ALICE_ROOT)" -bb $(ALIMDCSPECFILE)
99102ed0 293 $(MUTE)cp -p RPMS/i386/alimdc-*.rpm .
294 $(MUTE)rm -rf alimdc-root
295 $(MUTE)rm -rf RPMS
296 @echo "***** alimdc RPM created and put $(ALICE_ROOT) folder *****"
297
913d9052 298alimdc-specfile: $(RAWDIRO)
299 $(MUTE)rm -rf $(ALIMDCSPECFILE)
300 @echo "***** Making alimdc RPM spec-file $(ALIMDCSPECFILE) *****"
301 @echo "# RPM specfile for alimdc static libs" >> $(ALIMDCSPECFILE)
302 @echo "# Package contains both ROOT and AliRoot" >> $(ALIMDCSPECFILE)
303 @echo "# static libs needed by mStreamRecorder" >> $(ALIMDCSPECFILE)
304 @echo "# in order to ROOT-ify the incoming raw" >> $(ALIMDCSPECFILE)
305 @echo "# data" >> $(ALIMDCSPECFILE)
306 @echo "# Example how-to build alimdc RPM:" >> $(ALIMDCSPECFILE)
307 @echo "# cd $ALICE_ROOT" >> $(ALIMDCSPECFILE)
308 @echo "# make alimdc-rpm" >> $(ALIMDCSPECFILE)
309 @echo "" >> $(ALIMDCSPECFILE)
310 @echo "Summary: AliMDC static libraries" >> $(ALIMDCSPECFILE)
311 @echo "Name: alimdc" >> $(ALIMDCSPECFILE)
312 @echo "Version: $(ALIMDCVERSION)" >> $(ALIMDCSPECFILE)
313 @echo "Release: $(ALIMDCRELEASE)" >> $(ALIMDCSPECFILE)
314 @echo "# Copyright: CERN Alice Off-line" >> $(ALIMDCSPECFILE)
315 @echo "License: CERN Alice Off-line" >> $(ALIMDCSPECFILE)
316 @echo "Vendor: ALICE Core Off-line Group" >> $(ALIMDCSPECFILE)
317 @echo "URL: http://aliceinfo.cern.ch" >> $(ALIMDCSPECFILE)
318 @echo "Group: Applications/Alice" >> $(ALIMDCSPECFILE)
319 @echo "Prefix: /opt/%{name}" >> $(ALIMDCSPECFILE)
320 @echo "BuildRoot: %{_tmppath}/%{name}-root" >> $(ALIMDCSPECFILE)
321 @echo "" >> $(ALIMDCSPECFILE)
322 @echo "# automatic dependencies" >> $(ALIMDCSPECFILE)
323 @echo "AutoReqProv: yes" >> $(ALIMDCSPECFILE)
324 @echo "" >> $(ALIMDCSPECFILE)
325 @echo "# list here required RPM packages for runtime" >> $(ALIMDCSPECFILE)
326 @echo "Requires: glibc" >> $(ALIMDCSPECFILE)
327 @echo "" >> $(ALIMDCSPECFILE)
328 @echo "Provides: alimdc" >> $(ALIMDCSPECFILE)
329 @echo "" >> $(ALIMDCSPECFILE)
330 @echo "# description of the package" >> $(ALIMDCSPECFILE)
331 @echo "%description" >> $(ALIMDCSPECFILE)
332 @echo "Package contains both ROOT and AliRoot" >> $(ALIMDCSPECFILE)
333 @echo "static libs needed by mStreamRecorder" >> $(ALIMDCSPECFILE)
334 @echo "in order to ROOT-ify the incoming raw" >> $(ALIMDCSPECFILE)
335 @echo "data. The package version correspond to" >> $(ALIMDCSPECFILE)
336 @echo "the AliRoot one." >> $(ALIMDCSPECFILE)
337 @echo "" >> $(ALIMDCSPECFILE)
338 @echo "# list of files to be installed" >> $(ALIMDCSPECFILE)
339 @echo "%files" >> $(ALIMDCSPECFILE)
340 @echo "%defattr (-,root,root)" >> $(ALIMDCSPECFILE)
341 @echo "%{prefix}/lib/libAliMDC.a" >> $(ALIMDCSPECFILE)
342 @echo "%{prefix}/lib/libRoot.a" >> $(ALIMDCSPECFILE)
343 @echo "%{prefix}/lib/libpcre.a" >> $(ALIMDCSPECFILE)
344 @echo "%{prefix}/lib/libfreetype.a" >> $(ALIMDCSPECFILE)
345 @echo "%{prefix}/include/mdc.h" >> $(ALIMDCSPECFILE)
346
e66566e2 347alimdc-static: $(LIBPATH) $(BINPATH) $(RAWDatabaseALIB) $(MDCALIB) $(ESDALIB) $(STEERBaseALIB) $(alimdcCXXO)
3c1a04dc 348 $(MUTE)rm -rf $(LIBPATH)/libAliMDC.a
349 $(MUTE)rm -rf junk
e66566e2 350 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 351 $(LD) $(LDFLAGS) -o $(BINPATH)/alimdca $(alimdcCXXO) \
352 $(LIBPATH)/libAliMDC.a \
353 $(ROOTALIBDIR)/libRoot.a \
354 $(ROOTALIBDIR)/libfreetype.a $(ROOTALIBDIR)/libpcre.a \
355 -ldl
5fdadcc5 356
e5f9749d 357alilibs-static: $(LIBPATH) modules $(ALLALIBS)
358
5fdadcc5 359include build/MakefileDA
360
462ee303 361#-------------------------------------------------------------------------------
b9d0a01d 362# Single Makefile "distribution": Makefile + modules + mkdepend scripts
b934f194 363makedistr: $(MODULES)
b9d0a01d 364 tar -cvf MakeDistr.tar $(patsubst %,%/*.pkg,$(MODULES)) \
b934f194 365 Makefile create build/*
41f6cf69 366
b9d0a01d 367all: aliroot
41f6cf69 368
b934f194 369depend: $(INCLUDEFILES)
41f6cf69 370
b9d0a01d 371debug:
372ifndef ALIQUIET
373 @echo "***** Entering DEBUG mode. *****"
374endif
e1f602dc 375 @(export ALIDEBUG=YES && $(MAKE) aliroot)
b934f194 376
2d8cad5a 377profile:
378ifndef ALIQUIET
379 @echo "***** Entering PROFILE mode. *****"
380endif
e1f602dc 381 @(export ALIPROFILE=YES && $(MAKE) aliroot)
b934f194 382
b9d0a01d 383$(MODULES):
384ifndef ALIQUIET
385 @echo "***** Making $@ *****"
386endif
387 @mkdir -p $@
388
389$(BINPATH):
390ifndef ALIQUIET
391 @echo "***** Making $@ *****"
392endif
393 @mkdir -p $@
394
395$(LIBPATH):
396ifndef ALIQUIET
397 @echo "***** Making $@ *****"
398endif
399 @mkdir -p $@
400
401build/dummy.d: $(EXPORTFILES)
402 @(if [ ! -f $@ ] ; then \
403 touch $@; \
404 fi)
405
406clean:
2ea00b17 407 @echo "***** No target clean, use one of these *****"
b9d0a01d 408 @echo " clean-aliroot : Clean up all aliroot libraries"
409 @echo " clean-MODULENAME : Clean everything from module MODULENAME"
410 @echo " clean-all : Cleans up everything, including cern libraires"
1aa44b64 411 @echo " distclean : Like clean-all + clean all tgt_*'s"
b934f194 412 @echo " clean-modules : Clean all module.mk files in all modules"
b9d0a01d 413 @echo " clean-libs : Clean all libraries (not object files)"
414 @echo "********************************************"
415
416clean-all: clean-modules clean-libs clean-bins
417ifndef ALIQUIET
418 @echo "***** Cleaning up everything ****"
419endif
420 $(MUTE)rm -rf $(patsubst %,%/tgt_$(ALICE_TARGET),$(MODULES))
421 $(MUTE)rm -rf $(EXPORTDIR)
422
2ea00b17 423distclean: clean-all
1aa44b64 424 $(MUTE)rm -rf */tgt_* bin lib
2ea00b17 425
462ee303 426#-------------------------------------------------------------------------------
427# This cleans only libraries that are not CERN-libraries
b9d0a01d 428
429clean-aliroot: $(patsubst %,%/module.mk,$(ALIROOTMODULES)) $(patsubst %,clean-%,$(ALIROOTMODULES))
430
7e96fcc7 431CHECKMODULES := $(MODULES)
2900fa57 432CHECKMODULES := $(filter-out HBTP,$(CHECKMODULES))
433CHECKMODULES := $(filter-out MEVSIM,$(CHECKMODULES))
434CHECKMODULES := $(filter-out EPEMGEN,$(CHECKMODULES))
0b5dd071 435CHECKMODULES := $(filter-out TPHIC,$(CHECKMODULES))
af4ebdd2 436CHECKMODULES := $(filter-out LHAPDF,$(CHECKMODULES))
7e96fcc7 437CHECKMODULES := $(filter-out MICROCERN,$(CHECKMODULES))
b9d0a01d 438
b934f194 439check-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,check-%,$(CHECKMODULES))
b9d0a01d 440
5b0f3b29 441smell-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,smell-%,$(CHECKMODULES))
442
b934f194 443reveng-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,reveng-%,$(CHECKMODULES))
b9d0a01d 444
b934f194 445revdisp-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,revdisp-%,$(CHECKMODULES))
b9d0a01d 446
118c0ae6 447smell-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,smell-%,$(CHECKMODULES))
448
b9d0a01d 449clean-dicts:
450ifndef ALIQUIET
451 @echo "***** Cleaning up G__ files *****"
452endif
453 $(MUTE)rm -rf */tgt_$(ALICE_TARGET)/G__*
41f6cf69 454
b9d0a01d 455clean-modules:
456ifndef ALIQUIET
457 @echo "***** Cleaning up module.mk files *****"
458endif
b934f194 459 $(MUTE)rm -rf $(patsubst %,%/module.mk,$(MODULES))
41f6cf69 460
b9d0a01d 461clean-depend:
462ifndef ALIQUIET
463 @echo "***** Cleaning up dependencies *****"
464endif
465 $(MUTE)echo rm `find . -name "*.d"`
466
467clean-objects:
468ifndef ALIQUIET
469 @echo "***** Cleaning up .o files *****"
470endif
471 $(MUTE)echo rm `find . -name "*.o"`
472
473clean-libs:
474ifndef ALIQUIET
475 @echo "***** Cleaning up library files *****"
476endif
477 $(MUTE)rm -rf lib/tgt_$(ALICE_TARGET)/*
478
479clean-bins:
480ifndef ALIQUIET
481 @echo "***** Cleaning up binary files *****"
482endif
483 $(MUTE)rm -rf bin/tgt_$(ALICE_TARGET)
d7a221d0 484
b934f194 485clean-check-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,clean-check-%,$(CHECKMODULES))
ba546cfd 486
5b0f3b29 487clean-smell-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,clean-smell-%,$(CHECKMODULES))
488
b934f194 489clean-reveng-all: $(patsubst %,%/module.mk,$(CHECKMODULES)) $(patsubst %,clean-reveng-%,$(CHECKMODULES))
ba546cfd 490
d7a221d0 491htmldoc:
492 @rm -rf html/roothtml
493 @rm -f html/picts
494 @rm -f /tmp/macros
495 @cd html ;\
496 aliroot -q -b "mkhtml.C(0,1)" ;\
497 ls ../macros/*.C > /tmp/macros ;\
498 for i in $(ALIROOTMODULES) ; do \
499 ls ../$$i/*.C 2>/dev/null >> /tmp/macros ;\
500 done ;\
501 for i in `cat /tmp/macros` ; do \
502 echo $$i ; \
503 aliroot -b -q "mkhtml.C(\"$$i\")" > /dev/null ;\
504 done ;\
505 ./makeExampleList ;
506 @ln -s ../picts html/picts
507 @ln -s ../../picts html/roothtml/picts
508 @ln -s ../../../picts html/roothtml/src/picts
509 @ln -s ../../../picts html/roothtml/examples/picts