lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Deletes logfiles in build dir with make clean (issue 6300079)


From: PhilEHolmes
Subject: Deletes logfiles in build dir with make clean (issue 6300079)
Date: Mon, 11 Jun 2012 13:07:23 +0000

Reviewers: Julien Rioux, Graham Percival,

Message:
Please review.

Description:
Fixes issue 2415 by deleting all the logfiles created during make, make
doc or make test.  The deletion is non-selective - running make clean,
make doc clean or make test clean will delete all the logfiles created
in the build tree.  However, that's lots simpler than trying to do be
more selective and shouldn't cause a problem in the real world - the
logfiles are really only of any use after a failed build.

Please review this at http://codereview.appspot.com/6300079/

Affected files:
  M GNUmakefile.in
  M stepmake/stepmake/generic-targets.make


Index: GNUmakefile.in
diff --git a/GNUmakefile.in b/GNUmakefile.in
index 8cce2c8f72171d4dbc3221777e58b6e36e49afb9..4e3729fe273a6f7d5fb1537e5971dc469bfaed06 100644
--- a/GNUmakefile.in
+++ b/GNUmakefile.in
@@ -337,6 +337,7 @@ test-redo:

 test-clean: test-snippets-clean
        $(MAKE) -C input/regression out=test clean
+       find . -name "*.log" -delete

 snippets-clean:
        rm -rf out/lybook-db
Index: stepmake/stepmake/generic-targets.make
diff --git a/stepmake/stepmake/generic-targets.make b/stepmake/stepmake/generic-targets.make index fa7dc2e104d4ad47ee60b891dd77ecdf75df8637..e438b8a776f7270271ba3b386d1c9d6609911295 100644
--- a/stepmake/stepmake/generic-targets.make
+++ b/stepmake/stepmake/generic-targets.make
@@ -13,6 +13,7 @@ man:
 clean: local-clean
        -rm -rf $(outdir)
        $(LOOP)
+       find . -name "*.log" -delete

 ifeq (,$(findstring metafont,$(STEPMAKE_TEMPLATES)))
 bin-clean: local-bin-clean
@@ -205,3 +206,4 @@ doc-stage-1:

 doc-clean:
        $(MAKE) out=www clean
+       find . -name "*.log" -delete





reply via email to

[Prev in Thread] Current Thread [Next in Thread]