aboutsummaryrefslogtreecommitdiff
path: root/scripts/Makefile
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2015-06-09 16:19:51 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2015-06-10 18:45:29 -0500
commitd2ce07e227ec95370e8aee5f1199edc6ad61aff9 (patch)
tree0bd2299b11b978d8dae35be53421c343e8314386 /scripts/Makefile
parentb209fe3859c05c286037843bb34058f849c54b15 (diff)
Add rc-sstat script
The rc-sstat script is written to display status of s6 services and run rc-status to display all services status. This currently only works on Linux.
Diffstat (limited to 'scripts/Makefile')
-rw-r--r--scripts/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/scripts/Makefile b/scripts/Makefile
index 3d41631e..9a66c65d 100644
--- a/scripts/Makefile
+++ b/scripts/Makefile
@@ -1,5 +1,19 @@
+MK= ../mk
+include ${MK}/os.mk
+
DIR= ${LIBEXECDIR}/bin
BIN= on_ac_power
+INSTALLAFTER = _installafter
+
+ifeq (${OS},Linux)
+SRCS+= rc-sstat.in
+BIN+= rc-sstat
+endif
+
+_installafter:
+ifeq (${OS},Linux)
+ ${INSTALL} -d ${DESTDIR}${SBINDIR}
+ ln -s ${DIR}/rc-sstat ${DESTDIR}/${SBINDIR}/rc-sstat
+endif
-MK= ../mk
include ${MK}/scripts.mk