New file for speeding up tracking in Muon absorber
[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
8MAKEFLAGS =
9
10##### MACROS #####
11
12PACKAGE = Main
13
14##### Module libraries #####
15
16ALIROOT_DIRS = STEER TGeant3 TRD PHOS TPC ZDC MUON PMD FMD TOF ITS CASTOR \
17 RICH STRUCT EVGEN
18
19##### TARGETS #####
20
21default: lib bin alilibs aliroot
22
23lib bin:
24 @mkdir $@
25
26alilibs: lib
27 @for i in $(ALIROOT_DIRS) ; do \
28 ${MAKE} -C $$i depend ; \
29 done
30 @for i in $(ALIROOT_DIRS) ; do \
31 ${MAKE} -C $$i ; \
32 done
33
34aliroot: bin
35 @${MAKE} -C ALIROOT
36
37geant321: lib
38 @-${MAKE} -C GEANT321 depend
39 @${MAKE} -C GEANT321
40
41pythia: lib
42 @-${MAKE} -C PYTHIA depend
43 @${MAKE} -C PYTHIA
44
45pdf: lib
46 @-${MAKE} -C PDF depend
47 @${MAKE} -C PDF
48
49minicern: lib
50 @-${MAKE} -C MINICERN depend
51 @${MAKE} -C MINICERN
52
53cernlibs: geant321 pythia minicern pdf
54
b83f95da 55all: cernlibs default
fe4da5cc 56
57FORCE:
58
59############################### General Macros ################################
60
61include $(ALICE_ROOT)/conf/GeneralMacros
62
63############################### Specific Macros ###############################
64
65STRUCT_DIRS = html conf macros data share include Euclid picts \
66 Makefile README .rootrc
67
68LIBRARY_DIRS = MINICERN GEANT321 PYTHIA PDF
69
70dist: AliRoot3.01.tar.gz
71
72AliRoot3.01.tar.gz: $(STRUCT_DIRS) $(ALIROOT_DIRS) ALIROOT
73
74distall: AliOffline3.01.tar.gz
75
76AliOffline3.01.tar.gz: $(STRUCT_DIRS) $(ALIROOT_DIRS) $(LIBRARY_DIRS) ALIROOT
77
b83f95da 78distlib: AliLibs3.01.tar.gz
fe4da5cc 79
b83f95da 80AliLibs3.01.tar.gz: $(LIBRARY_DIRS)
fe4da5cc 81
82AliRoot3.01.tar.gz AliLibs3.01.tar.gz AliOffline3.01.tar.gz:
83 @rm -f $(ALICE)/$@
84 @rm -f `find . -name '*~' -print` \
85 `find . -name '*.bak' -print` \
cec56ef0 86 `find . -name '.*~' -print` \
18778aed 87 `find . -name '*\#*' -print`
fe4da5cc 88 @rm -f /tmp/saves
89 @ls -1d $^ | sed -e "s/^/$(ALICE_LEVEL)\//" > /tmp/saves
90 @cd $(ALICE) ; \
91 gtar cvfz $@ --exclude '*.o' --exclude '*Cint.*' \
4a8984aa 92 --exclude '*/roothtml/*' --exclude '*/CVS' \
ce7c8058 93 --exclude Make-depend --exclude '*html/gif' \
94 `cat /tmp/saves`
fe4da5cc 95
96alidepend:
97 @for i in $(ALIROOT_DIRS) ; do \
98 ${MAKE} -C $$i depend ; \
99 done
100
101htmldocnew: FORCE
102 @for i in $(ALIROOT_DIRS) ; do \
103 echo "Making HTML doc for $$i" ; \
104 rm -rf $(ALICE_ROOT)/$$i/html ; \
105 cd $(ALICE_ROOT)/$$i ; \
106 aliroot -b -q mkhtml.C > /dev/null; \
107 for j in `ls *.C` ; do \
108 echo $$j ; \
109 aliroot -b -q "mkhtml.C(\"$$j\")" > /dev/null; \
110 done \
111 done
112
113
114htmldoc: FORCE
115 @rm -rf html/roothtml
116 @rm -f /tmp/macros
117 @cd html ;\
118 aliroot -q -b "mkhtml.C(0,1)" ;\
119 ls ../macros/*.C > /tmp/macros ;\
120 for i in $(ALIROOT_DIRS) ; do \
121 ls ../$$i/*.C 2>/dev/null >> /tmp/macros ;\
122 done ;\
123 for i in `cat /tmp/macros` ; do \
124 echo $$i ; \
125 aliroot -b -q "mkhtml.C(\"$$i\")" > /dev/null ;\
126 done ;\
127 ./makeExampleList ;
1439f98e 128 @ln -s ../picts html/picts
129 @ln -s ../../picts html/roothtml/picts
130 @ln -s ../../../picts html/roothtml/src/picts
131 @ln -s ../../../picts html/roothtml/examples/picts
fe4da5cc 132
133clean: FORCE
134 @rm -f *~ \#*
8881bdd2 135 @for i in $(ALIROOT_DIRS) ALIROOT ; do \
fe4da5cc 136 ${MAKE} -C $$i macroclean ; \
137 done
138
139libclean: FORCE
140 @rm -f *~ \#*
141 @for i in $(LIBRARY_DIRS) ; do \
142 ${MAKE} -C $$i macroclean ; \
143 done
144
145allclean: libclean clean