]> git.uio.no Git - u/mrichter/AliRoot.git/blame - Makefile
fDebugReconstruction and SetDebugReconstruction for AliPHOSReconstructioner. Debug...
[u/mrichter/AliRoot.git] / Makefile
CommitLineData
fe4da5cc 1############################### Main Makefile #################################
2
3# Include machine specific definitions
4
5include $(ALICE_ROOT)/conf/GeneralDef
6include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
7
08301132 8MAKEFLAGS += -s
fe4da5cc 9
10##### MACROS #####
11
12PACKAGE = Main
13
47b969ba 14DOTS = " ................................................................................"
15
0237511c 16PRETTY = $(AWK) '{print $$0 substr($(DOTS),1,79-length($$0))}'
47b969ba 17
fe4da5cc 18##### Module libraries #####
19
09898eb4 20ALIROOT_DIRS = STEER TGeant3 TRD PHOS TPC ZDC MUON PMD FMD TOF ITS \
44c62722 21 CASTOR RICH START STRUCT EVGEN RALICE
fe4da5cc 22
23##### TARGETS #####
24
25default: lib bin alilibs aliroot
26
27lib bin:
28 @mkdir $@
29
30alilibs: lib
0237511c 31 echo MAKEFLAGS = $(MAKEFLAGS)
47b969ba 32 for i in $(ALIROOT_DIRS) ; do \
33 echo "Making headers in $$i" | $(PRETTY); \
31ccd13b 34 ${MAKE} -C $$i headers ; \
47b969ba 35 done
fe4da5cc 36 @for i in $(ALIROOT_DIRS) ; do \
47b969ba 37 echo "Making dependencies in $$i" | $(PRETTY); \
fe4da5cc 38 ${MAKE} -C $$i depend ; \
39 done
40 @for i in $(ALIROOT_DIRS) ; do \
47b969ba 41 echo "Making in $$i" | $(PRETTY); \
fe4da5cc 42 ${MAKE} -C $$i ; \
43 done
44
47b969ba 45aliroot geant321 minicern pdf pythia: bin
0237511c 46 @DIR=`echo $@ | $(AWK) '{print toupper($$0)}'` ; \
47b969ba 47 echo "Making dependencies in $$DIR" | $(PRETTY); \
48 ${MAKE} -C $$DIR depend;\
49 echo "Making in $$DIR" | $(PRETTY); \
50 ${MAKE} -C $$DIR
fe4da5cc 51
52cernlibs: geant321 pythia minicern pdf
53
b83f95da 54all: cernlibs default
fe4da5cc 55
56FORCE:
57
58############################### General Macros ################################
59
60include $(ALICE_ROOT)/conf/GeneralMacros
61
62############################### Specific Macros ###############################
63
64STRUCT_DIRS = html conf macros data share include Euclid picts \
4bff45ae 65 doc etc Makefile .rootrc
fe4da5cc 66
67LIBRARY_DIRS = MINICERN GEANT321 PYTHIA PDF
68
6ac62af5 69dist: AliRoot$(VERSION).tar.gz
fe4da5cc 70
6ac62af5 71AliRoot$(VERSION).tar.gz: $(STRUCT_DIRS) $(ALIROOT_DIRS) ALIROOT
fe4da5cc 72
6ac62af5 73distall: AliOffline$(VERSION).tar.gz
fe4da5cc 74
6ac62af5 75AliOffline$(VERSION).tar.gz: $(STRUCT_DIRS) $(ALIROOT_DIRS) $(LIBRARY_DIRS) ALIROOT
fe4da5cc 76
6ac62af5 77distlib: AliLibs$(VERSION).tar.gz
fe4da5cc 78
6ac62af5 79AliLibs$(VERSION).tar.gz: $(LIBRARY_DIRS)
fe4da5cc 80
6ac62af5 81AliRoot$(VERSION).tar.gz AliLibs$(VERSION).tar.gz AliOffline$(VERSION).tar.gz:
fe4da5cc 82 @rm -f $(ALICE)/$@
83 @rm -f `find . -name '*~' -print` \
84 `find . -name '*.bak' -print` \
cec56ef0 85 `find . -name '.*~' -print` \
18778aed 86 `find . -name '*\#*' -print`
fe4da5cc 87 @rm -f /tmp/saves
88 @ls -1d $^ | sed -e "s/^/$(ALICE_LEVEL)\//" > /tmp/saves
89 @cd $(ALICE) ; \
90 gtar cvfz $@ --exclude '*.o' --exclude '*Cint.*' \
e9fe1fae 91 --exclude 'roothtml' --exclude 'CVS' \
ce7c8058 92 --exclude Make-depend --exclude '*html/gif' \
ee854967 93 --exclude "*tgt_*" --exclude check \
ce7c8058 94 `cat /tmp/saves`
fe4da5cc 95
fe4da5cc 96htmldocnew: FORCE
97 @for i in $(ALIROOT_DIRS) ; do \
98 echo "Making HTML doc for $$i" ; \
99 rm -rf $(ALICE_ROOT)/$$i/html ; \
100 cd $(ALICE_ROOT)/$$i ; \
101 aliroot -b -q mkhtml.C > /dev/null; \
102 for j in `ls *.C` ; do \
103 echo $$j ; \
104 aliroot -b -q "mkhtml.C(\"$$j\")" > /dev/null; \
105 done \
106 done
107
108
109htmldoc: FORCE
110 @rm -rf html/roothtml
e95543bd 111 @rm -f html/picts
fe4da5cc 112 @rm -f /tmp/macros
113 @cd html ;\
114 aliroot -q -b "mkhtml.C(0,1)" ;\
115 ls ../macros/*.C > /tmp/macros ;\
116 for i in $(ALIROOT_DIRS) ; do \
117 ls ../$$i/*.C 2>/dev/null >> /tmp/macros ;\
118 done ;\
119 for i in `cat /tmp/macros` ; do \
120 echo $$i ; \
121 aliroot -b -q "mkhtml.C(\"$$i\")" > /dev/null ;\
122 done ;\
123 ./makeExampleList ;
1439f98e 124 @ln -s ../picts html/picts
125 @ln -s ../../picts html/roothtml/picts
126 @ln -s ../../../picts html/roothtml/src/picts
127 @ln -s ../../../picts html/roothtml/examples/picts
fe4da5cc 128
129clean: FORCE
130 @rm -f *~ \#*
8881bdd2 131 @for i in $(ALIROOT_DIRS) ALIROOT ; do \
fe4da5cc 132 ${MAKE} -C $$i macroclean ; \
133 done
134
135libclean: FORCE
136 @rm -f *~ \#*
137 @for i in $(LIBRARY_DIRS) ; do \
138 ${MAKE} -C $$i macroclean ; \
139 done
140
141allclean: libclean clean
41f6cf69 142
143# IRST coding rule check
144CHECK_DIRS = $(ALIROOT_DIRS) ALIROOT
145check:
146 @for i in $(CHECK_DIRS) ; do \
147 echo "Checking $$i" ; \
148 ${MAKE} -C $$i check ; \
149 done
150
151
152
153
154
155
156
157