diff options
Diffstat (limited to 'package/targets.mak')
| -rw-r--r-- | package/targets.mak | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/package/targets.mak b/package/targets.mak new file mode 100644 index 0000000..5767606 --- /dev/null +++ b/package/targets.mak @@ -0,0 +1,75 @@ +BIN_TARGETS := \ +s6-frontend-config-preprocess + +LIBEXEC_TARGETS := + +WRAP_ANY := + +ifdef WRAP_DAEMONTOOLS + +DAEMONTOOLS_TARGETS := \ +envdir \ +envuidgid \ +fghack \ +multilog \ +pgrphack \ +readproctitle \ +setlock \ +setuidgid \ +softlimit \ +supervise \ +svc \ +svok \ +svscan \ +svscanboot \ +svstat \ +tai64n \ +tai64nlocal + +install-bin: $(DAEMONTOOLS_TARGETS:%=$(DESTDIR)$(bindir)/%) + +ifneq ($(exthome),) +global-links: $(DAEMONTOOLS_TARGETS:%=$(DESTDIR)$(sproot)/command/%) +endif + +WRAP_ANY := 1 + +endif + +ifdef WRAP_RUNIT + +RUNIT_TARGETS := \ +runit \ +runit-init \ +runsv \ +runsvchdir \ +runsvdir \ +svlogd \ +utmpset + +RUNIT_SPECIAL_TARGETS := chpst sv +BIN_TARGETS += s6-frontend-alias-sv s6-frontend-alias-chpst + +install-bin: $(RUNIT_TARGETS:%=$(DESTDIR)$(bindir)/%) $(RUNIT_SPECIAL_TARGETS:%=$(DESTDIR)$(bindir)/%) + +ifneq ($(exthome),) +global-links: $(RUNIT_TARGETS:%=$(DESTDIR)$(sproot)/command/%) $(RUNIT_SPECIAL_TARGETS:%=$(DESTDIR)$(sproot)/command/%) +endif + +WRAP_ANY := 1 + +$(DESTDIR)$(bindir)/chpst: $(DESTDIR)$(bindir)/s6-frontend-alias-chpst + exec $(INSTALL) -D -l s6-frontend-alias-chpst $@ +$(DESTDIR)$(bindir)/sv: $(DESTDIR)$(bindir)/s6-frontend-alias-sv + exec $(INSTALL) -D -l s6-frontend-alias-sv $@ + +endif + +ifdef WRAP_ANY + +BIN_TARGETS += s6-frontend-alias + +$(DAEMONTOOLS_TARGETS:%=$(DESTDIR)$(bindir)/%) $(RUNIT_TARGETS:%=$(DESTDIR)$(bindir)/%): $(DESTDIR)$(bindir)/s6-frontend-alias + exec $(INSTALL) -D -l s6-frontend-alias $@ + +endif |
