Skip to content

Commit 80f1afa

Browse files
committed
einfo: symlink rather then duplicate multicall binary
Rather then have many copies of the same executable, that differ in only name, create a single copy and symlink all the others.
1 parent 554ccab commit 80f1afa

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

src/einfo/meson.build

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
einfo_execs = [
22
'einfon',
3-
'einfo',
43
'ewarnn',
54
'ewarn',
65
'eerrorn',
@@ -22,11 +21,18 @@ einfo_execs = [
2221
'veoutdent',
2322
]
2423

25-
foreach exec: einfo_execs
26-
executable(exec,
24+
executable('einfo',
2725
['einfo.c', version_h],
2826
include_directories: [incdir, einfo_incdir, rc_incdir],
2927
link_with: [libeinfo, librc],
3028
install: true,
3129
install_dir: rc_bindir)
30+
31+
foreach exec: einfo_execs
32+
custom_target(exec,
33+
output: exec,
34+
command: ['ln', '-sf', 'einfo', '@OUTPUT@'],
35+
build_always: true,
36+
install: true,
37+
install_dir: rc_bindir)
3238
endforeach

0 commit comments

Comments
 (0)