]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - Makefile
Same class as previously in AliSimpleGen.cxx
[u/mrichter/AliRoot.git] / Makefile
index 54283e132c50fb0737437efda26a889ff0bb0ca8..1840bd2c356790cbe7ac7e03bc20b1a81bfe3b70 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@
 include $(ALICE_ROOT)/conf/GeneralDef
 include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
 
-MAKEFLAGS = -s
+MAKEFLAGS += -s
 
 ##### MACROS #####
 
@@ -13,12 +13,12 @@ PACKAGE = Main
 
 DOTS = " ................................................................................"
 
-PRETTY =  awk '{print $$0 substr($(DOTS),1,79-length($$0))}'
+PRETTY =  $(AWK) '{print $$0 substr($(DOTS),1,79-length($$0))}'
 
 ##### Module libraries #####
 
 ALIROOT_DIRS           = STEER TGeant3 TRD PHOS TPC ZDC MUON PMD FMD TOF ITS \
-                         CASTOR RICH START STRUCT EVGEN RALICE
+                         CASTOR RICH START STRUCT EVGEN RALICE ALIFAST THijing
 
 ##### TARGETS #####
  
@@ -28,6 +28,7 @@ lib bin:
        @mkdir $@
 
 alilibs:  lib
+       echo MAKEFLAGS = $(MAKEFLAGS)
        for i in $(ALIROOT_DIRS) ; do \
           echo "Making headers in $$i" | $(PRETTY); \
           ${MAKE} -C $$i headers ; \
@@ -42,7 +43,7 @@ alilibs:  lib
        done
 
 aliroot geant321 minicern pdf pythia: bin
-       @DIR=`echo $@ | awk '{print toupper($$0)}'` ; \
+       @DIR=`echo $@ | $(AWK) '{print toupper($$0)}'` ; \
        echo "Making dependencies in $$DIR" | $(PRETTY); \
        ${MAKE} -C $$DIR depend;\
        echo "Making in $$DIR" | $(PRETTY); \
@@ -56,7 +57,7 @@ FORCE:
 
 ############################### General Macros ################################
 
-include $(ALICE_ROOT)/conf/GeneralMacros
+include $(ALICE_ROOT)/conf/GeneralMacros
 
 ############################### Specific Macros ###############################
 
@@ -147,6 +148,14 @@ check:
                     ${MAKE} -C $$i check ; \
                done
 
+REVENG_DIRS = $(ALIROOT_DIRS)
+
+reveng:
+       @for i in $(REVENG_DIRS) ; do \
+               echo "Reverse engineering $$i" ; \
+               ${MAKE} -C $$i reveng ; \
+       done
+