diff options
author | Adam Domurad <[email protected]> | 2012-11-21 14:18:31 -0500 |
---|---|---|
committer | Adam Domurad <[email protected]> | 2012-11-21 14:18:31 -0500 |
commit | 6805ac326625634d7fc02f19b4989811c83bffee (patch) | |
tree | 78ab771673a06596ac59ca3a3955b68e931a57ce /Makefile.am | |
parent | 3190620dbf3e559b94bf8a57ce25d87c98693fa5 (diff) |
Fix new make targets not cleaning properly
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/Makefile.am b/Makefile.am index 0a301f3..c6918cb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -310,10 +310,11 @@ $(CPP_UNITTEST_FRAMEWORK_LIB): $(CPP_UNITTEST_FRAMEWORK_SRCDIR) popd clean-unittest++: - rm $(CPP_UNITTEST_FRAMEWORK_BUILDDIR)/*.o - rm $(CPP_UNITTEST_FRAMEWORK_LIB) - rmdir $(CPP_UNITTEST_FRAMEWORK_BUILDDIR) - rmdir $(CPP_UNITTEST_DIR) &> /dev/null + rm -f $(CPP_UNITTEST_FRAMEWORK_BUILDDIR)/*.o + rm -f $(CPP_UNITTEST_FRAMEWORK_LIB) + if [ -e $(CPP_UNITTEST_FRAMEWORK_BUILDDIR) ] ; then \ + rmdir $(CPP_UNITTEST_FRAMEWORK_BUILDDIR) ; \ + fi stamps/cpp-unit-tests-compile.stamp: $(CPP_UNITTEST_FRAMEWORK_LIB) $(CPP_UNITTEST_SRCDIR) $(addprefix $(PLUGIN_DIR)/,$(PLUGIN_OBJECTS)) mkdir -p $(CPP_UNITTEST_DIR) && \ @@ -354,10 +355,9 @@ $(CPP_UNITTEST_EXECUTABLE): $(CPP_UNITTEST_FRAMEWORK_LIB) stamps/cpp-unit-tests- $(BUILT_CPP_UNIT_TEST_FRAMEWORK) -o $@ clean-cpp-unit-tests: - rm stamps/cpp-unit-tests-compile.stamp &> /dev/null - rm $(CPP_UNITTEST_EXECUTABLE) - rm $(CPP_UNITTEST_DIR)/*.o - rmdir $(CPP_UNITTEST_DIR) &> /dev/null + rm -f stamps/cpp-unit-tests-compile.stamp + rm -f $(CPP_UNITTEST_EXECUTABLE) + rm -f $(CPP_UNITTEST_DIR)/*.o run-cpp-unit-tests: $(CPP_UNITTEST_EXECUTABLE) $(CPP_UNITTEST_EXECUTABLE) @@ -571,6 +571,9 @@ clean-plugin-docs: # ========================== clean-tests: clean-netx-tests clean-cpp-unit-tests clean-unittest++ + if [ -e $(CPP_UNITTEST_DIR) ] ; then \ + rmdir $(CPP_UNITTEST_DIR) ; \ + fi if [ -e $(TESTS_DIR) ]; then \ rmdir $(TESTS_DIR) ; \ fi |