aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Domurad <[email protected]>2012-11-21 14:18:31 -0500
committerAdam Domurad <[email protected]>2012-11-21 14:18:31 -0500
commit6805ac326625634d7fc02f19b4989811c83bffee (patch)
tree78ab771673a06596ac59ca3a3955b68e931a57ce
parent3190620dbf3e559b94bf8a57ce25d87c98693fa5 (diff)
Fix new make targets not cleaning properly
-rw-r--r--ChangeLog4
-rw-r--r--Makefile.am19
2 files changed, 15 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 97c6731..db6f821 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2012-11-21 Adam Domurad <[email protected]>
+ * Makefile.am: Fix new clean targets not cleaning properly
+
+2012-11-21 Adam Domurad <[email protected]>
+
Support for C++ unit testing with UnitTest++ for IcedTeaWeb.
* tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc: New, contains tests
for utility functions.
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