diff options
| author | David Lamparter <equinox@diac24.net> | 2020-04-28 13:17:20 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2021-02-23 16:56:58 +0100 |
| commit | a1e6ab1e9334a4f266cd7133f1deb2193811f386 (patch) | |
| tree | a8d05976b8934bb3e9d1d1ad5135b9af3454b627 /python | |
| parent | 36a8fdfd74c82103055e097296ee03363adfa06d (diff) | |
build: extract xrefs
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'python')
| -rw-r--r-- | python/makefile.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/python/makefile.py b/python/makefile.py index 10c73df72d..44658013b3 100644 --- a/python/makefile.py +++ b/python/makefile.py @@ -31,6 +31,10 @@ clippy_scan = mv["clippy_scan"].strip().split() for clippy_file in clippy_scan: assert clippy_file.endswith(".c") +xref_targets = [] +for varname in ["bin_PROGRAMS", "sbin_PROGRAMS", "lib_LTLIBRARIES", "module_LTLIBRARIES"]: + xref_targets.extend(mv[varname].strip().split()) + # check for files using clippy but not listed in clippy_scan if args.dev_build: basepath = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) @@ -125,6 +129,14 @@ for clippy_file in clippy_scan: out_lines.append(clippydep.substitute(clippybase=clippy_file[:-2])) out_lines.append("") +out_lines.append("xrefs = %s" % (" ".join(["%s.xref" % target for target in xref_targets]))) +out_lines.append("frr.xref: $(xrefs)") +out_lines.append("") + +#frr.xref: $(bin_PROGRAMS) $(sbin_PROGRAMS) $(lib_LTLIBRARIES) $(module_LTLIBRARIES) +# $(AM_V_XRELFO) $(CLIPPY) $(top_srcdir)/python/xrelfo.py -o $@ $^ + +out_lines.append("") out_lines.extend(bcdeps) out_lines.append("") bc_targets = [] |
