1. matitamake now correctly creates dependencies of the form "A/f.mo: ..." (it used to create
    useless dependencies of the form "/T/A/f.mo: ...")
 2. matitamake is now more (indeed too much) verbose when matitadep fails
-SRC=$(shell find @ROOT@ -name "*.ma" -a -type f)
+SRC=$(shell find @ROOT@ -name "*.ma" -a -type f | sed 's?^@ROOT@/??')
 TODO=$(SRC:%.ma=%.mo)
 
 MATITA_FLAGS=
 MATITACLEAN=@CLEAN@
 MATITADEP=@DEP@
 
-all: $(TODO)
+all: $(TODO) 
 
 clean:
        $(MATITACLEAN) $(MATITA_FLAGS) $(SRC) 
        fi
 
 @DEPFILE@ : $(SRC)
-       $(MATITADEP) $(MATITA_FLAGS) -I '@ROOT@' $^ 1> @DEPFILE@ 2>@DEPFILE@.errors 
+       $(MATITADEP) $(MATITA_FLAGS) -I '@ROOT@' $^ 1> @DEPFILE@ 2>@DEPFILE@.errors \
+               || (echo;cat @DEPFILE@.errors;echo;rm @DEPFILE@;false)
 
 # this is the depend for full targets like:
 # dir/dir/name.moo: dir/dir/name.ma dir/dep.moo