From f06ff46151c38b2259c5ee4ae83d38c6f6fc0c8c Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Sun, 12 Jul 2020 02:30:31 +0200 Subject: Teach minecctl to create proper mcserver files, auto-generate systemd service names as necessary --- examples/meson.build | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'examples') diff --git a/examples/meson.build b/examples/meson.build index 5d3564b..7b525f6 100644 --- a/examples/meson.build +++ b/examples/meson.build @@ -1,8 +1,7 @@ # SPDX-License-Identifier: GPL-2 -example_files = [ +xxd_files = [ 'eula.txt', - 'example.mcserver', 'minecctl.conf', 'minecproxy.conf', 'minecproxy.service', @@ -14,16 +13,24 @@ xxd = find_program('xxd') xxd_cmd = [xxd, '-i', '@INPUT@', '@OUTPUT@'] -foreach example_file: example_files - example_output = example_file + '.h' +foreach xxd_file: xxd_files + xxd_output = xxd_file + '.h' file = custom_target( - example_output, - input: example_file, - output: example_output, + xxd_output, + input: xxd_file, + output: xxd_output, command: xxd_cmd, build_by_default: true, ) endforeach +install_files = [ + 'example.mcserver', + 'minecctl.conf', + 'minecproxy.conf', + 'minecproxy.service', + 'minecserver@.service', +] + -- cgit v1.2.3