Commit 1f13b3a0 authored by Michael Shigorin's avatar Michael Shigorin

pkg.in: initial profiles/

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.
parent 39acb237
......@@ -7,6 +7,6 @@ endif
# sequential execution, no reason to haste
all:
@for dir in lists groups; do \
@for dir in lists groups profiles; do \
$(MAKE) -C $$dir; \
done
# 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)"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment