Skip to content

Commit 925cd31

Browse files
committed
service: 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 80f1afa commit 925cd31

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

src/service/meson.build

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
service_execs = [
2-
'service_starting',
32
'service_started',
43
'service_stopping',
54
'service_stopped',
@@ -10,11 +9,18 @@ service_execs = [
109
'service_crashed',
1110
]
1211

13-
foreach exec : service_execs
14-
executable(exec,
12+
executable('service_starting',
1513
['service.c', misc_c, version_h],
1614
include_directories: [incdir, einfo_incdir, rc_incdir],
1715
link_with: [libeinfo, librc],
1816
install: true,
1917
install_dir: rc_bindir)
18+
19+
foreach exec : service_execs
20+
custom_target(exec,
21+
output: exec,
22+
command: ['ln', '-sf', 'service_starting', '@OUTPUT@'],
23+
build_always: true,
24+
install: true,
25+
install_dir: rc_bindir)
2026
endforeach

0 commit comments

Comments
 (0)