You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2013/05/01 18:26:15 UTC

[lucy-commits] [2/3] git commit: refs/heads/master - Clean CFC when cleaning C library

Clean CFC when cleaning C library


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/9f7001c8
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/9f7001c8
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/9f7001c8

Branch: refs/heads/master
Commit: 9f7001c83bce817d7301c4198da5809939804c0f
Parents: bf138d9
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Wed May 1 18:22:22 2013 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Wed May 1 18:22:22 2013 +0200

----------------------------------------------------------------------
 common/charmonizer.main |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/9f7001c8/common/charmonizer.main
----------------------------------------------------------------------
diff --git a/common/charmonizer.main b/common/charmonizer.main
index 41b41a6..040cad1 100644
--- a/common/charmonizer.main
+++ b/common/charmonizer.main
@@ -153,6 +153,7 @@ S_write_makefile(struct chaz_CLIArgs *args) {
     chaz_MakeVar  *var;
     chaz_MakeRule *rule;
     chaz_MakeRule *clean_rule;
+    chaz_MakeRule *distclean_rule;
 
     int          cflags_style = chaz_CC_get_cflags_style();
     chaz_CFlags *extra_cflags = chaz_CC_get_extra_cflags();
@@ -382,6 +383,11 @@ S_write_makefile(struct chaz_CLIArgs *args) {
         chaz_MakeRule_add_recursive_rm_command(clean_rule, "coverage");
     }
 
+    chaz_MakeRule_add_make_command(clean_rule, "$(CFC_DIR)", "clean");
+
+    distclean_rule = chaz_MakeFile_distclean_rule(makefile);
+    chaz_MakeRule_add_make_command(distclean_rule, "$(CFC_DIR)", "distclean");
+
     chaz_MakeFile_write(makefile);
 
     chaz_MakeFile_destroy(makefile);