Make also lib directory if missing when making libraries
[u/mrichter/AliRoot.git] / conf / GeneralMacros
index b1a75e51f863c0001a41ad344d67204bffea69fb..22c52d1fbd67df26339f8d7b5629ca6294bc423f 100644 (file)
@@ -2,7 +2,7 @@
 
 $(SLIBRARY):
                @echo "Generating $@"
-               @[ -d $(dir $@) ] || mkdir $(dir $@)
+               @[ -d $(dir $@) ] || mkdir -p $(dir $@)
                @rm -f $@
                 ifeq ($(PLATFORM),aix)
                   @cd tgt_$(ALICE_TARGET) ;\
@@ -16,7 +16,7 @@ $(SLIBRARY):
 
 $(ALIBRARY):   
                @echo "Generating $@"
-               @[ -d $(dir $@) ] || mkdir $(dir $@)
+               @[ -d $(dir $@) ] || mkdir -p $(dir $@)
                @rm -f $@
                @ar rv $@ $^