Skip to content
This repository was archived by the owner on Mar 23, 2023. It is now read-only.

Commit 195caab

Browse files
committed
Generate _test.go only for _test.py files
1 parent bbf6cb4 commit 195caab

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tools/genmake

+5-4
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,11 @@ def main(args):
7474
[os.path.join(dirpath, filename)],
7575
['grumpc -modname={} $< > $@'.format(modname)],
7676
echo_debug=True)
77-
_PrintRule(gotest_file,
78-
[os.path.join(dirpath, filename)],
79-
['gentest -modname={} > $@'.format(modname)],
80-
echo_debug=True)
77+
if modname.endswith('_test'):
78+
_PrintRule(gotest_file,
79+
[os.path.join(dirpath, filename)],
80+
['gentest -modname={} > $@'.format(modname)],
81+
echo_debug=True)
8182

8283
recipe = (r"""pydeps -modname=%s $< | awk '{gsub(/\./, "/", $$0); """
8384
r"""print "%s: %s/__python__/" $$0 ".a"}' > $@""")

0 commit comments

Comments
 (0)