Skip to content

Commit

Permalink
Make "make clean" rules a bit more standard.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dreiss committed Feb 24, 2008
1 parent b556465 commit d55f41d
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion compiler/cpp/Makefile.am
Expand Up @@ -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
2 changes: 1 addition & 1 deletion lib/java/Makefile.am
Expand Up @@ -4,7 +4,7 @@ all:
install-exec-hook:
$(ANT) install

clean-generic:
clean-local:
$(ANT) clean

check-local: all
4 changes: 2 additions & 2 deletions lib/py/Makefile.am
Expand Up @@ -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
2 changes: 1 addition & 1 deletion test/Makefile.am
Expand Up @@ -81,4 +81,4 @@ INCLUDES = \
AM_CPPFLAGS = $(BOOST_CPPFLAGS)

clean-local:
rm -rf gen-cpp
$(RM) -r gen-cpp
2 changes: 1 addition & 1 deletion test/java/Makefile.am
@@ -1,6 +1,6 @@
check:
$(ANT) test

clean-generic:
clean-local:
$(ANT) clean

2 changes: 1 addition & 1 deletion test/perl/Makefile
Expand Up @@ -13,4 +13,4 @@ all: ../ThriftTest.thrift
$(THRIFT) -perl ../ThriftTest.thrift

clean:
rm -fr gen-perl
$(RM) -r gen-perl
2 changes: 1 addition & 1 deletion test/php/Makefile
Expand Up @@ -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
2 changes: 1 addition & 1 deletion test/py/Makefile.am
Expand Up @@ -24,4 +24,4 @@ gen-py/ThriftTest/__init__.py: ../ThriftTest.thrift
$(THRIFT) -py $<

clean-local:
-rm -rf gen-py
$(RM) -r gen-py
2 changes: 1 addition & 1 deletion test/rb/Makefile
Expand Up @@ -19,4 +19,4 @@ tests: stubs
ruby TestSuite.rb

clean:
rm -fr gen-rb
$(RM) -r gen-rb
2 changes: 1 addition & 1 deletion test/threads/Makefile
Expand Up @@ -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
2 changes: 1 addition & 1 deletion tutorial/cpp/Makefile
Expand Up @@ -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

0 comments on commit d55f41d

Please sign in to comment.