Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/leethomason/tinyxml2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stevens <Dan.R.Stevens@gmail.com>2020-02-04 13:50:07 +0300
committerDaniel Stevens <Dan.R.Stevens@gmail.com>2020-02-04 13:50:07 +0300
commit22e5db14025aeedbbe147b9d831fd53547b4b3eb (patch)
treec41ec446f77d6c703dfe135c9fa606302bf50d63 /Makefile
parentff61650517cc32d524689366f977716e73d4f924 (diff)
Remove `clean` before `test` or `check`
The `clean` doesn't appear to serve a purpose. Make already does dependency tracking, so if files are out of date they will be rebuilt. The `clean` rule does however cause problems when the test executable already exists. In that case it will delete outputs, including the test executable, and then fail. By the time the test executable was deleted, it was already determined that it was up to date, and so does not get rebuilt. You end up having to run the command twice, each time seesawing between deleting outputs or generating outputs and running the tests.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5989b95..e76d8ec 100644
--- a/Makefile
+++ b/Makefile
@@ -41,11 +41,11 @@ clean:
distclean:
-$(RM) *.o xmltest libtinyxml2.a
-test: clean xmltest
+test: xmltest
./xmltest
# Standard GNU target
-check: clean xmltest
+check: xmltest
./xmltest
staticlib: libtinyxml2.a