From 46669bd2e60a28b0698183935d6ade80d8fee367 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Sat, 14 Jan 2006 19:48:44 +0100 Subject: [PATCH] Be more careful when copying .deps/*.pp files Some systems won't have them and then there will be lots of error messages. --- Makefile.lib | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.lib b/Makefile.lib index 8519a585..b6c124af 100644 --- a/Makefile.lib +++ b/Makefile.lib @@ -111,11 +111,13 @@ endif %.o: $(srcdir)%.c $(call mcmd,compile) - @-cp .deps/$(*F).pp .deps/$(*F).P; \ + @-if test -e .deps/$(*F).pp; then \ + cp .deps/$(*F).pp .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ - rm .deps/$(*F).pp + rm .deps/$(*F).pp; \ + fi CLEAN += $(PROG) $(OBJS)