]> arthur.barton.de Git - sd-tool.git/blob - share/Makefile
sd-tool: Set "pipefail" bash shell option
[sd-tool.git] / share / 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_INCLUDES = sd-tool-common.inc.sh \
12         sdt-cmd-timer.inc.sh
13
14 SHARE_D = $(DESTDIR)$(PREFIX)/share/sd-tool
15
16 include ../lib/Makefile.ax
17
18 check-local: $(ALL_INCLUDES)
19         bash ./sd-tool-common.inc.sh
20
21 install-local: $(ALL_INCLUDES)
22         install -d -o "$(USER)" -g "$(GROUP)" -m 755 \
23                 "$(SHARE_D)"
24         install -p -o "$(USER)" -g "$(GROUP)" -m 755 $(ALL_INCLUDES) \
25                 "$(SHARE_D)/"