build system: improved cleaning to remove .bowl files.
authorRejean Loyer <rejean.loyer@gmail.com>
Wed, 18 Apr 2012 04:46:17 +0000 (00:46 -0400)
committerRejean Loyer <rejean.loyer@gmail.com>
Wed, 30 May 2012 21:56:14 +0000 (17:56 -0400)
crossplatform.mk
ide/src/project/Project.ec
include.mk

index c25eb39..89f18e2 100644 (file)
@@ -61,11 +61,11 @@ else
 endif
 
 # PREFIXES AND EXTENSIONS
-.SUFFIXES: .ec .pec .sym .imp .c .o .a
-P := .pec
+.SUFFIXES: .c .ec .sym .imp .bowl .o .a
 EC := .ec
 S := .sym
 I := .imp
+B := .bowl
 C := .c
 O := .o
 A := .a
index 2be4b14..bc5b343 100644 (file)
@@ -2090,7 +2090,7 @@ private:
 
          {
             int c;
-            char * map[3][2] = { { "COBJECTS", "C" }, { "SYMBOLS", "S" }, { "IMPORTS", "I" } };
+            char * map[4][2] = { { "COBJECTS", "C" }, { "SYMBOLS", "S" }, { "IMPORTS", "I" }, { "BOWLS", "B" } };
 
             topNode.GenMakefilePrintNode(f, this, eCsources, namesInfo, listItems, config);
             eCsourcesParts = OutputFileList(f, "_ECSOURCES", listItems, varStringLenDiffs, null);
@@ -2508,9 +2508,10 @@ private:
          f.Printf("clean: objdir%s\n", sameObjTargetDirs ? "" : " targetdir");
          f.Printf("\t$(call rmq,%s$(TARGET))\n", numCObjects ? "$(OBJ)$(MODULE).main.c $(OBJ)$(MODULE).main.ec $(OBJ)$(MODULE).main$(I) $(OBJ)$(MODULE).main$(S) " : "");
          OutputCleanActions(f, "OBJECTS", objectsParts);
-         OutputCleanActions(f, "COBJECTS", eCsourcesParts);
          if(numCObjects)
          {
+            OutputCleanActions(f, "COBJECTS", eCsourcesParts);
+            OutputCleanActions(f, "BOWLS", eCsourcesParts);
             OutputCleanActions(f, "IMPORTS", eCsourcesParts);
             OutputCleanActions(f, "SYMBOLS", eCsourcesParts);
          }
index 13ed4d8..40cd5e1 100644 (file)
@@ -50,9 +50,10 @@ else
 endif
 
 # PREFIXES AND EXTENSIONS
-.SUFFIXES: .c .ec .sym .imp .o .a
+.SUFFIXES: .c .ec .sym .imp .bowl .o .a
 S := .sym
 I := .imp
+B := .bowl
 C := .c
 O := .o
 A := .a