Skip to content

Commit c34f7e3

Browse files
committed
mark_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 2633375 commit c34f7e3

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

src/mark_service/meson.build

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
mark_service_execs = [
2-
'mark_service_starting',
32
'mark_service_started',
43
'mark_service_stopping',
54
'mark_service_stopped',
@@ -10,11 +9,15 @@ mark_service_execs = [
109
'mark_service_crashed',
1110
]
1211

12+
executable('mark_service_starting',
13+
['mark_service.c', misc_c, version_h],
14+
include_directories: [incdir, einfo_incdir, rc_incdir],
15+
link_with: [libeinfo,librc],
16+
install: true,
17+
install_dir: rc_sbindir)
18+
1319
foreach exec : mark_service_execs
14-
executable(exec,
15-
['mark_service.c', misc_c, version_h],
16-
include_directories: [incdir, einfo_incdir, rc_incdir],
17-
link_with: [libeinfo,librc],
18-
install: true,
19-
install_dir: rc_sbindir)
20+
install_symlink(exec,
21+
install_dir: rc_sbindir,
22+
pointing_to: 'mark_service_starting')
2023
endforeach

0 commit comments

Comments
 (0)