lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [lucy-commits] [2/3] git commit: refs/heads/master - Clean CFC when cleaning C library
Date Wed, 01 May 2013 16:26:15 GMT
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 <wellnhofer@aevum.de>
Authored: Wed May 1 18:22:22 2013 +0200
Committer: Nick Wellnhofer <wellnhofer@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);


Mime
View raw message