Clean G4 dirs only if G4INSTALL (I.Hrivnacova)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Mar 2001 18:47:48 +0000 (18:47 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Mar 2001 18:47:48 +0000 (18:47 +0000)
Makefile

index 49b68e0..b2f9ed2 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 *~ \#*