Make "make clean" rules a bit more standard.
authorDavid Reiss <dreiss@apache.org>
Sun, 24 Feb 2008 16:42:18 +0000 (16:42 +0000)
committerDavid Reiss <dreiss@apache.org>
Sun, 24 Feb 2008 16:42:18 +0000 (16:42 +0000)
Summary:
make-generic is some sort of internal undocumented thing.
make-local is what is supposed to be used for this stuff.
Also use $(RM) instead of "rm -f".

Reviewed By: marc

Test Plan: make clean

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665498 13f79535-47bb-0310-9956-ffa450edef68

compiler/cpp/Makefile.am
lib/java/Makefile.am
lib/py/Makefile.am
test/Makefile.am
test/java/Makefile.am
test/perl/Makefile
test/php/Makefile
test/py/Makefile.am
test/rb/Makefile
test/threads/Makefile
tutorial/cpp/Makefile

index 3ccef42..286b0d7 100644 (file)
@@ -68,4 +68,4 @@ thrift_LDADD = @LEXLIB@
 EXTRA_DIST = README
 
 clean-local:
-       rm -rf thriftl.cc thrifty.cc thrifty.h
+       $(RM) thriftl.cc thrifty.cc thrifty.h
index 2aa5714..46c02ee 100644 (file)
@@ -4,7 +4,7 @@ all:
 install-exec-hook:
        $(ANT) install
 
-clean-generic:
+clean-local:
        $(ANT) clean
 
 check-local: all
index 1142b3c..a91d28c 100644 (file)
@@ -11,7 +11,7 @@ all:
 install-exec-hook:
        $(PYTHON) setup.py install --root=$(DESTDIR) --prefix=$(PY_PREFIX) $(PYTHON_SETUPUTIL_ARGS)
 
-clean-generic:
-       rm -rf build
+clean-local:
+       $(RM) -r build
 
 check-local: all
index db31738..f4dd05c 100644 (file)
@@ -81,4 +81,4 @@ INCLUDES = \
 AM_CPPFLAGS = $(BOOST_CPPFLAGS)
 
 clean-local:
-       rm -rf gen-cpp
+       $(RM) -r gen-cpp
index 8cb19ae..853207e 100644 (file)
@@ -1,6 +1,6 @@
 check:
        $(ANT) test
 
-clean-generic:
+clean-local:
        $(ANT) clean
 
index 128bbe8..5703c3c 100644 (file)
@@ -13,4 +13,4 @@ all: ../ThriftTest.thrift
        $(THRIFT) -perl ../ThriftTest.thrift
 
 clean:
-       rm -fr gen-perl
+       $(RM) -r gen-perl
index 6cc5233..10b430e 100644 (file)
@@ -22,4 +22,4 @@ stubs-inline: ../ThriftTest.thrift
        $(THRIFT) --phpi ../ThriftTest.thrift
 
 clean:
-       rm -fr gen-php gen-phpi
+       $(RM) -r gen-php gen-phpi
index 0d159a2..9155179 100644 (file)
@@ -24,4 +24,4 @@ gen-py/ThriftTest/__init__.py: ../ThriftTest.thrift
        $(THRIFT) -py $<
 
 clean-local:
-       -rm -rf gen-py
+       $(RM) -r gen-py
index 502a981..326f720 100644 (file)
@@ -19,4 +19,4 @@ tests: stubs
        ruby TestSuite.rb
 
 clean:
-       rm -fr gen-rb
+       $(RM) -r gen-rb
index 58cdf18..59eb4f2 100644 (file)
@@ -46,4 +46,4 @@ client: stubs
        g++ -o ThreadsClient $(CFL) ThreadsClient.cpp ./gen-cpp/ThreadsTest.cpp ./gen-cpp/ThreadsTest_types.cpp
 
 clean:
-       rm -fr *.o ThreadsServer ThreadsClient gen-cpp gen-py
+       $(RM) -r *.o ThreadsServer ThreadsClient gen-cpp gen-py
index 74520f0..35a21d8 100644 (file)
@@ -13,4 +13,4 @@ client: CppClient.cpp
        g++ -o CppClient -I${THRIFT_DIR} -I${BOOST_DIR}  -I../gen-cpp -L${LIB_DIR} -lthrift CppClient.cpp ${GEN_SRC}
 
 clean:
-       rm -fr CppClient CppServer
+       $(RM) -r CppClient CppServer