2021-02-26 12:46:11 -05:00
|
|
|
# Makefile - hhl - /src/world/bin/s6-scripts
|
|
|
|
# Copyright 2021 Nathan Fisher <nfisher.sr@gmail.com>
|
|
|
|
#
|
2022-08-25 13:13:16 -04:00
|
|
|
progname = init
|
|
|
|
export exec_prefix = $(DESTDIR)
|
|
|
|
export sbin = 1
|
2021-02-26 12:46:11 -05:00
|
|
|
include hhl.script.mk
|
2022-10-07 22:47:17 -04:00
|
|
|
VPATH += bin
|
|
|
|
|
|
|
|
scripts += halt
|
|
|
|
scripts += poweroff
|
|
|
|
scripts += reboot
|
|
|
|
scripts += shutdown
|
|
|
|
scripts += telinit
|
2021-02-26 12:46:11 -05:00
|
|
|
|
2022-08-25 13:13:16 -04:00
|
|
|
sysctl_libdir = $(DESTDIR)/usr/lib/sysctl.d
|
2021-02-26 12:46:11 -05:00
|
|
|
|
2022-10-07 22:47:17 -04:00
|
|
|
install: $(sysctl_libdir)/50-default.conf install_conf install_scripts
|
2021-02-26 12:46:11 -05:00
|
|
|
|
|
|
|
$(sysctl_libdir)/50-default.conf: data/50-default.conf | $(sysctl_libdir)
|
|
|
|
install -m644 $< $@
|
|
|
|
|
|
|
|
install_conf:
|
|
|
|
cp -R etc $(DESTDIR)
|
|
|
|
|
2022-10-07 22:47:17 -04:00
|
|
|
install_scripts: $(scripts)
|
|
|
|
for script in $(scripts) ; \
|
|
|
|
do install -m755 $$script $(DESTDIR)/bin
|
|
|
|
|
2021-02-26 12:46:11 -05:00
|
|
|
$(sysctl_libdir):
|
|
|
|
install -d $@
|
|
|
|
|
2022-10-07 22:47:17 -04:00
|
|
|
.PHONY: install_conf install_scripts
|