1f13b3a039
This is to support Centaurus-like images featuring more than a single installation profile (e.g., "workstation/server/minimal"). Quite a few more modifications are needed to do it right though as m-p has fallen prey to exactly the "single root composition" assumption with its current THE_* variables semantics and processing.
22 lines
526 B
Makefile
22 lines
526 B
Makefile
# step 3: copy package profiles referenced in distro configuration
|
|
# (and only those!) over to $(BUILDDIR)
|
|
|
|
ifndef BUILDDIR
|
|
$(error BUILDDIR not defined)
|
|
endif
|
|
|
|
include $(BUILDDIR)/distcfg.mk
|
|
SUFFIX := pkg/profiles
|
|
TARGET := $(BUILDDIR)/$(SUFFIX)
|
|
|
|
all: $(GLOBAL_DEBUG)
|
|
@if [ -n "$(PKG_PROFILES)" ]; then \
|
|
mkdir -p $(TARGET) && \
|
|
cp -at $(TARGET) -- \
|
|
$(addsuffix .directory,$(PKG_PROFILES)); \
|
|
mp-commit "$(TARGET)" "requested $(SUFFIX) copied over"; \
|
|
fi
|
|
|
|
debug:
|
|
@echo "** PKG_PROFILES: $(PKG_PROFILES)"
|