Skip to content

Commit d40071a

Browse files
committed
value: symlink rather then duplicate multicall binary
As done with einfo, 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 925cd31 commit d40071a

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

src/value/meson.build

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
value_execs = [
2-
'service_get_value',
32
'service_set_value',
43
'get_options',
54
'save_options',
65
]
76

7+
executable('service_get_value',
8+
['value.c', misc_c, version_h],
9+
include_directories: [incdir, einfo_incdir, rc_incdir],
10+
link_with: [libeinfo, librc],
11+
install: true,
12+
install_dir: rc_bindir)
13+
814
foreach exec : value_execs
9-
executable(exec,
10-
['value.c', misc_c, version_h],
11-
include_directories: [incdir, einfo_incdir, rc_incdir],
12-
link_with: [libeinfo, librc],
15+
custom_target(exec,
16+
output: exec,
17+
command: ['ln', '-sf', 'service_get_value', '@OUTPUT@'],
18+
build_always: true,
1319
install: true,
1420
install_dir: rc_bindir)
1521
endforeach

0 commit comments

Comments
 (0)