Clean G4 dirs only if G4INSTALL (I.Hrivnacova)
[u/mrichter/AliRoot.git] / Makefile
index 49b68e025f0b1ebf564da661ea6893e2938c9ab7..b2f9ed2286c1cbe66534ea63cf386af586a2af69 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -138,9 +138,14 @@ htmldoc:           FORCE
 clean:  FORCE
                @rm -f *~ \#*
                @rm -f include/*
-               @for i in $(ALIROOT_DIRS) ALIROOT TGeant4 AliGeant4; do \
+               @for i in $(ALIROOT_DIRS) ALIROOT; do \
                     ${MAKE} -C $$i macroclean ; \
                 done
+                ifdef G4INSTALL
+                 @for i in TGeant4 AliGeant4; do \
+                    ${MAKE} -C $$i macroclean ; \
+                  done
+                endif  
 
 libclean:  FORCE
                @rm -f *~ \#*