]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - Makefile
Exclude at least current target from make
[u/mrichter/AliRoot.git] / Makefile
index 877e6695f2b830ac98eae10f6c4c1cb8dea5c4b5..1cc7ce0da073566d7fb6f5f83027895cf24a0203 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -13,8 +13,8 @@ PACKAGE = Main
 
 ##### Module libraries #####
 
-ALIROOT_DIRS           = STEER TGeant3 TRD PHOS TPC ZDC MUON PMD FMD TOF ITS CASTOR \
-                 RICH STRUCT EVGEN
+ALIROOT_DIRS           = STEER TGeant3 TRD PHOS TPC ZDC MUON PMD FMD TOF ITS \
+                         CASTOR RICH STRUCT EVGEN RALICE
 
 ##### TARGETS #####
  
@@ -24,6 +24,9 @@ lib bin:
        @mkdir $@
 
 alilibs:  lib
+       @for i in $(ALIROOT_DIRS) ; do \
+          ${MAKE} -C $$i headers ; \
+       done
        @for i in $(ALIROOT_DIRS) ; do \
           ${MAKE} -C $$i depend ; \
        done
@@ -52,7 +55,7 @@ minicern:  lib
 
 cernlibs: geant321 pythia minicern pdf
 
-all:   default cernlibs
+all:   cernlibs default
 
 FORCE:
 
@@ -67,19 +70,19 @@ STRUCT_DIRS = html conf macros data share include Euclid picts \
 
 LIBRARY_DIRS   = MINICERN GEANT321 PYTHIA PDF
 
-dist: AliRoot3.01.tar.gz
+dist: AliRoot$(VERSION).tar.gz
 
-AliRoot3.01.tar.gz: $(STRUCT_DIRS) $(ALIROOT_DIRS) ALIROOT
+AliRoot$(VERSION).tar.gz: $(STRUCT_DIRS) $(ALIROOT_DIRS) ALIROOT
 
-distall: AliOffline3.01.tar.gz
+distall: AliOffline$(VERSION).tar.gz
 
-AliOffline3.01.tar.gz: $(STRUCT_DIRS) $(ALIROOT_DIRS) $(LIBRARY_DIRS) ALIROOT
+AliOffline$(VERSION).tar.gz: $(STRUCT_DIRS) $(ALIROOT_DIRS) $(LIBRARY_DIRS) ALIROOT
 
-distlib: AliLib3.10.tar.gz
+distlib: AliLibs$(VERSION).tar.gz
 
-AliLib3.01.tar.gz: $(LIBRARY_DIRS)
+AliLibs$(VERSION).tar.gz: $(LIBRARY_DIRS)
 
-AliRoot3.01.tar.gz AliLibs3.01.tar.gz AliOffline3.01.tar.gz:
+AliRoot$(VERSION).tar.gz AliLibs$(VERSION).tar.gz AliOffline$(VERSION).tar.gz:
                @rm -f $(ALICE)/$@ 
                @rm -f `find . -name '*~' -print` \
                        `find . -name '*.bak' -print` \
@@ -91,13 +94,9 @@ AliRoot3.01.tar.gz AliLibs3.01.tar.gz AliOffline3.01.tar.gz:
                 gtar cvfz $@ --exclude '*.o' --exclude '*Cint.*' \
                 --exclude '*/roothtml/*' --exclude '*/CVS' \
                --exclude Make-depend --exclude '*html/gif' \
+               --exclude "*$(ALICE_TARGET)*" \
                 `cat /tmp/saves` 
 
-alidepend:
-               @for i in $(ALIROOT_DIRS) ; do \
-                    ${MAKE} -C $$i depend ; \
-                done
-
 htmldocnew:            FORCE
                @for i in $(ALIROOT_DIRS) ; do \
                    echo "Making HTML doc for $$i" ; \
@@ -113,6 +112,7 @@ htmldocnew:         FORCE
 
 htmldoc:               FORCE
                @rm -rf html/roothtml
+               @rm -f  html/picts
                @rm -f /tmp/macros
                @cd html ;\
                aliroot -q -b "mkhtml.C(0,1)" ;\
@@ -125,13 +125,14 @@ htmldoc:          FORCE
                        aliroot -b -q "mkhtml.C(\"$$i\")" > /dev/null ;\
                 done ;\
                ./makeExampleList ;
-               @ln -s ../../picts html/roothtml/gif
-               @ln -s ../../../picts html/roothtml/src/gif
-               @ln -s ../../../picts html/roothtml/examples/gif
+               @ln -s ../picts html/picts
+               @ln -s ../../picts html/roothtml/picts
+               @ln -s ../../../picts html/roothtml/src/picts
+               @ln -s ../../../picts html/roothtml/examples/picts
 
 clean:  FORCE
                @rm -f *~ \#*
-               @for i in $(ALIROOT_DIRS) ; do \
+               @for i in $(ALIROOT_DIRS) ALIROOT ; do \
                     ${MAKE} -C $$i macroclean ; \
                 done