- sources = set(sys.argv[1:])
- basenames = [os.path.basename(source) for source in sources]
- spares = set([source for source in sources
- if os.path.basename(source) + '.in' in basenames])
- rules = create_rules(*(sources - spares))
- print(make_makefile(rules, spares), end='')
+ rules = create_rules(*sys.argv[1:])
+ print(make_makefile(rules), end='')