Permalink
Browse files

Fixed 'make clean' to not delete tracked Hadoop files.

From: Ben Mahler <benjamin.mahler@gmail.com>
Review: https://reviews.apache.org/r/8036

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1418153 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 80dbe13 commit f8507f984d69d86ae6ca0b7629807962cd973caf @benh benh committed Dec 7, 2012
Showing with 12 additions and 10 deletions.
  1. +12 −10 hadoop/Makefile.am
View
@@ -59,20 +59,22 @@ hadoop-0.20.2-cdh3u3:
clean-local:
+ if test "$(top_srcdir)" != "$(top_builddir)"; then \
+ -rm -f TUTORIAL.sh; \
+ -rm -f hadoop-0.20.2-cdh3u3.patch; \
+ -rm -f hadoop-0.20.2-cdh3u3_hadoop-env.sh.patch; \
+ -rm -f hadoop-0.20.2-cdh3u3_mesos.patch; \
+ -rm -f hadoop-0.20.205.0.patch; \
+ -rm -f hadoop-0.20.205.0_hadoop-env.sh.patch; \
+ -rm -f hadoop-0.20.205.0_mesos.patch; \
+ -rm -f mapred-site.xml.patch; \
+ -rm -f mesos-executor; \
+ -rm -rf mesos; \
+ fi
-rm -rf hadoop-0.20.2-cdh3u3
-rm -f hadoop-0.20.2-cdh3u3.tar.gz
-rm -rf hadoop-0.20.205.0
-rm -f hadoop-0.20.205.0.tar.gz
- -rm -f TUTORIAL.sh
- -rm -f hadoop-0.20.2-cdh3u3.patch
- -rm -f hadoop-0.20.2-cdh3u3_hadoop-env.sh.patch
- -rm -f hadoop-0.20.2-cdh3u3_mesos.patch
- -rm -f hadoop-0.20.205.0.patch
- -rm -f hadoop-0.20.205.0_hadoop-env.sh.patch
- -rm -f hadoop-0.20.205.0_mesos.patch
- -rm -f mapred-site.xml.patch
- -rm -rf mesos
- -rm -f mesos-executor
.PHONY: hadoop-0.20.205.0 hadoop-0.20.2-cdh3u3

0 comments on commit f8507f9

Please sign in to comment.