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