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