diff options
Diffstat (limited to 'misc/python/mkdeps.py')
-rwxr-xr-x | misc/python/mkdeps.py | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/misc/python/mkdeps.py b/misc/python/mkdeps.py deleted file mode 100755 index 64eafb9dc..000000000 --- a/misc/python/mkdeps.py +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/python - -import os, re, sys - -def boost_dir(): - return "/usr/local/src/boost/libs/python/src" - -def get_listing_of(dir): - list = []; - for root, dirs, files in os.walk(dir): - list = list + [os.path.join(root, name) for name in files] - list.sort() - return list - -def produce_output(list): - def obj_name(source): - return re.sub(r"^/.*/(.+).cpp$", r"build/boost/\1.o", source) - - def obj_deps(sources): - def obj_dep(source): - return obj_name(source) + ": " + source + "\n\t$(CXX) $(BOOST_CFLAGS) -c $< -o $@\n" - return map(obj_dep, sources); - - def file_lists(list): - def file_list(list, macro, trans): - return 'BOOST_' + macro + ' = ' + ' '.join(map(trans, list)) + "\n\n" - return file_list(list, 'SRC', None) + file_list(list, 'OBJS', obj_name) - - return file_lists(list) + "\n".join(obj_deps(list)) - -def main(): - print produce_output(get_listing_of(boost_dir())) - -if __name__ == "__main__": - sys.exit(main()) |