aboutsummaryrefslogtreecommitdiffstats
path: root/package/targets.mak
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2025-10-20 23:59:19 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2025-10-20 23:59:19 +0000
commita384be48fd6039ed4ecd48ba98008ecf5c8505a7 (patch)
tree8ae143117e61ef4a43639848217593e727250319 /package/targets.mak
parent6ae8c05d11dd822dd56b70c38c79c1b55ac5c1ee (diff)
downloads6-a384be48fd6039ed4ecd48ba98008ecf5c8505a7.tar.gz
Add s6-background-watch (untested)
Diffstat (limited to 'package/targets.mak')
-rw-r--r--package/targets.mak12
1 files changed, 11 insertions, 1 deletions
diff --git a/package/targets.mak b/package/targets.mak
index dbe0b68..30900d6 100644
--- a/package/targets.mak
+++ b/package/targets.mak
@@ -60,11 +60,21 @@ s6-instance-create \
s6-instance-delete \
s6-instance-control \
s6-instance-status \
-s6-instance-list
+s6-instance-list \
+
+LIBEXEC_TARGETS := \
+s6-background-watch \
LIB_DEFS := S6=s6
S6_DESCRIPTION :=
+$(shell grep -qFx "kevent: yes" $(sysdeps)/sysdeps)
+ifeq ($(.SHELLSTATUS),0)
+KEVENTPTHREAD_LIB := $(PTHREAD_LIB)
+else
+KEVENTPTHREAD_LIB :=
+endif
+
ifneq ($(EXECLINE_LIB),)
LIB_DEFS += S6AUTO=s6auto
S6AUTO_DESCRIPTION := The s6auto library (C helpers to create service directories)