build: add infrastructure for installing stub executors
this enables the split setup with ifupdown1 addons and core executors as will be implemented in Alpine 3.13.
This commit is contained in:
parent
0de4a3f6f9
commit
d9fd545ad1
1 changed files with 10 additions and 1 deletions
11
Makefile
11
Makefile
|
@ -49,13 +49,19 @@ IFQUERY_OBJ = ${IFQUERY_SRC:.c=.o}
|
|||
IFUPDOWN_SRC = cmd/ifupdown.c
|
||||
IFUPDOWN_OBJ = ${IFUPDOWN_SRC:.c=.o}
|
||||
|
||||
EXECUTOR_SCRIPTS ?= \
|
||||
EXECUTOR_SCRIPTS_CORE ?= \
|
||||
dhcp \
|
||||
ipv6-ra \
|
||||
static \
|
||||
link \
|
||||
|
||||
EXECUTOR_SCRIPTS_OPT ?= \
|
||||
bridge
|
||||
|
||||
EXECUTOR_SCRIPTS ?= ${EXECUTOR_SCRIPTS_CORE} ${EXECUTOR_SCRIPTS_OPT}
|
||||
|
||||
EXECUTOR_SCRIPTS_STUB ?=
|
||||
|
||||
CMD_OBJ = ${MULTICALL_OBJ} ${IFQUERY_OBJ} ${IFUPDOWN_OBJ}
|
||||
|
||||
CMDS = ifup ifdown ifquery
|
||||
|
@ -90,6 +96,9 @@ install: all
|
|||
for i in ${EXECUTOR_SCRIPTS}; do \
|
||||
install -D -m755 executor-scripts/${LAYOUT}/$$i ${DESTDIR}${EXECUTOR_PATH}/$$i; \
|
||||
done
|
||||
for i in ${EXECUTOR_SCRIPTS_STUB}; do \
|
||||
install -D -m755 executor-scripts/stub/$$i ${DESTDIR}${EXECUTOR_PATH}/$$i; \
|
||||
done
|
||||
|
||||
.scd.1 .scd.2 .scd.3 .scd.4 .scd.5 .scd.6 .scd.7 .scd.8:
|
||||
${SCDOC} < $< > $@
|
||||
|
|
Loading…
Reference in a new issue