Commit 9129b410 authored by Robert Bradshaw's avatar Robert Bradshaw

Only make dep file for recursive

parent 70b3c710
...@@ -223,7 +223,7 @@ class Context: ...@@ -223,7 +223,7 @@ class Context:
return 1 return 1
def read_dependency_file(self, source_path): def read_dependency_file(self, source_path):
dep_path = replace_suffix(source_path, ".dep") dep_path = Utils.replace_suffix(source_path, ".dep")
if os.path.exists(dep_path): if os.path.exists(dep_path):
f = open(dep_path, "rU") f = open(dep_path, "rU")
chunks = [ line.strip().split(" ", 1) chunks = [ line.strip().split(" ", 1)
......
...@@ -54,7 +54,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): ...@@ -54,7 +54,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
if self.has_imported_c_functions(): if self.has_imported_c_functions():
self.module_temp_cname = env.allocate_temp_pyobject() self.module_temp_cname = env.allocate_temp_pyobject()
env.release_temp(self.module_temp_cname) env.release_temp(self.module_temp_cname)
self.generate_dep_file(env, result) if options.recursive:
self.generate_dep_file(env, result)
self.generate_c_code(env, options, result) self.generate_c_code(env, options, result)
self.generate_h_code(env, options, result) self.generate_h_code(env, options, result)
self.generate_api_code(env, result) self.generate_api_code(env, result)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment