Skip to content

Commit

Permalink
mark_service: symlink rather then duplicate multicall binary
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jsbronder committed Nov 8, 2023
1 parent d40071a commit c0b3166
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/mark_service/meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
mark_service_execs = [
'mark_service_starting',
'mark_service_started',
'mark_service_stopping',
'mark_service_stopped',
Expand All @@ -10,11 +9,18 @@ mark_service_execs = [
'mark_service_crashed',
]

executable('mark_service_starting',
['mark_service.c', misc_c, version_h],
include_directories: [incdir, einfo_incdir, rc_incdir],
link_with: [libeinfo,librc],
install: true,
install_dir: rc_sbindir)

foreach exec : mark_service_execs
executable(exec,
['mark_service.c', misc_c, version_h],
include_directories: [incdir, einfo_incdir, rc_incdir],
link_with: [libeinfo,librc],
custom_target(exec,
output: exec,
command: ['ln', '-sf', 'mark_service_starting', '@OUTPUT@'],
build_always: true,
install: true,
install_dir: rc_sbindir)
endforeach

0 comments on commit c0b3166

Please sign in to comment.