]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - Makefile.flat
A new macro, based on Jiri's that will produce Digits from SDigits.
[u/mrichter/AliRoot.git] / Makefile.flat
index ffe01890277c248e62e6e23844be3bd9def8deb4..4d1da9f38456869fd61f156a4c66d0ad58abc980 100644 (file)
@@ -53,7 +53,13 @@ endif
 ALIROOTMODULES:= STEER \
         TGeant3 PHOS TRD TPC ZDC MUON PMD FMD TOF ITS \
          CASTOR RICH START STRUCT EVGEN RALICE ALIFAST \
-        THijing CONTAINERS MEVSIM TMEVSIM THbtp HBTP EMCAL HBTAN
+        THijing CONTAINERS MEVSIM TMEVSIM THbtp HBTP EMCAL HBTAN \
+
+
+GEANT4MODULES:=        TGeant4 AliGeant4
+ifeq ($(MAKECMDGOALS),geant4)
+ALIROOTMODULES += $(GEANT4MODULES)
+endif
 
 CERNMODULES:= PDF PYTHIA PYTHIA6 GEANT321 MINICERN HIJING
 
@@ -116,7 +122,7 @@ include build/module.dep
 #############################################################
 # 
 #        Check if module.mk is present for the library
-%.mk:
+%.mk: build/module.tpl
 ifndef ALIQUIET
        @echo "***** Creating $@ file *****";
 endif
@@ -166,12 +172,16 @@ include build/dummy.d
 
 # targets
 
-.PHONY:                alilibs aliroot makedistr clean
+.PHONY:                alilibs aliroot geant4 makedistr clean
 
 modules: $(patsubst %,%/module.mk,$(MODULES))  
 
+geant4modules: $(patsubst %,%/module.mk,$(GEANT4MODULES)) 
+
 aliroot: $(BINPATH) $(ALLEXECS) alilibs bin
 
+geant4: aliroot
+
 alilibs: $(LIBPATH) $(ALLLIBS) lib modules
 
 # Single Makefile "distribution": Makefile + modules + mkdepend scripts