2 # sd-tool: Helper Tool for systemd
3 # Copyright (c)2023 Alexander Barton (alex@barton.de)
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
13 include ../lib/Makefile.ax
16 ./sd-tool --version 2>&1 | grep -F 'sd-tool' >/dev/null
17 ./sd-tool --help 2>&1 | grep -F 'help text' >/dev/null
19 install-local: sd-tool
20 install -d -o "$(USER)" -g "$(GROUP)" -m 755 \
21 "$(DESTDIR)$(PREFIX)/bin"
22 install -p -o "$(USER)" -g "$(GROUP)" -m 755 sd-tool \
23 "$(DESTDIR)$(PREFIX)/bin/sd-tool"