aboutsummaryrefslogtreecommitdiff
path: root/scripts/Makefile
diff options
context:
space:
mode:
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