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