summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJeff Donahue <jeff.donahue@gmail.com>2014-03-29 20:12:24 -0700
committerJeff Donahue <jeff.donahue@gmail.com>2014-04-02 10:58:49 -0700
commit5d9040a3d8cc039eebed29b43a2d90c6e6f54844 (patch)
tree1cd96b91e3910a0f7f25fde71151616a0334b0a4 /Makefile
parente29838ddf14fcbc01e4d4925750eef7d75c09575 (diff)
downloadcaffe-5d9040a3d8cc039eebed29b43a2d90c6e6f54844.tar.gz
caffe-5d9040a3d8cc039eebed29b43a2d90c6e6f54844.tar.bz2
caffe-5d9040a3d8cc039eebed29b43a2d90c6e6f54844.zip
cleanup superclean output
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 23d7b6fe..b413df67 100644
--- a/Makefile
+++ b/Makefile
@@ -301,16 +301,15 @@ clean:
SUPERCLEAN_EXTS := .so .a .o .bin .testbin .pb.cc .pb.h _pb2.py .cuo
supercleanfiles:
- $(eval SUPERCLEAN_FILES := \
- $(strip $(foreach ext,$(SUPERCLEAN_EXTS), \
- $(shell find . -name '*$(ext)'))))
+ $(eval SUPERCLEAN_FILES := $(strip \
+ $(foreach ext,$(SUPERCLEAN_EXTS), $(shell find . -name '*$(ext)'))))
supercleanlist: supercleanfiles
@ \
if [ -z "$(SUPERCLEAN_FILES)" ]; then \
echo "No generated files found."; \
else \
- echo $(SUPERCLEAN_FILES); \
+ echo $(SUPERCLEAN_FILES) | tr ' ' '\n'; \
fi
superclean: clean supercleanfiles
@@ -319,7 +318,7 @@ superclean: clean supercleanfiles
echo "No generated files found."; \
else \
echo "Deleting the following generated files:"; \
- echo $(SUPERCLEAN_FILES); \
+ echo $(SUPERCLEAN_FILES) | tr ' ' '\n'; \
$(RM) $(SUPERCLEAN_FILES); \
fi