Correct the bug related to the duplicate inclusion in makefile generation
[bertos.git] / wizard / bertos_utils.py
index 4a17beb91eb209ab914dab8e96356b4a395adb11..ceb82c718eac5fa1887fd0b96438a1c9d8973b08 100644 (file)
@@ -121,11 +121,11 @@ def csrcGenerator(project_info):
     pcsrc = []
     ## constants to be included at the beginning of the makefile
     constants = {}
-    module_files = set([])
-    dependency_files = set([])
-    ## assembly sources
-    asm_files = set([])
     for module, information in modules.items():
+        module_files = set([])
+        dependency_files = set([])
+        ## assembly sources
+        asm_files = set([])
         if information["enabled"]:
             if "constants" in information:
                 constants.update(information["constants"])