]> arthur.barton.de Git - sd-tool.git/blob - bin/Makefile
sd-tool: Set "pipefail" bash shell option
[sd-tool.git] / bin / Makefile
1 #
2 # sd-tool: Helper Tool for systemd
3 # Copyright (c)2023 Alexander Barton (alex@barton.de)
4 #
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.
9 #
10
11 ALL = sd-tool
12
13 include ../lib/Makefile.ax
14
15 check-local: sd-tool
16         ./sd-tool --version 2>&1 | grep -F 'sd-tool' >/dev/null
17         ./sd-tool --help 2>&1 | grep -F 'help text' >/dev/null
18
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"