b56df31624
MAIN_GROUPS should align better along with MAIN_PACKAGES and MAIN_LISTS (even if MAIN_ prefix might be suboptimal given that these packages are essentially extras within the particular image).
25 lines
597 B
Makefile
25 lines
597 B
Makefile
# step 3: copy package groups referenced in distro configuration
|
|
# (and only those!) over to $(BUILDDIR)
|
|
|
|
ifndef BUILDDIR
|
|
$(error BUILDDIR not defined)
|
|
endif
|
|
|
|
include $(BUILDDIR)/distcfg.mk
|
|
SUFFIX := pkg/groups
|
|
TARGET := $(BUILDDIR)/$(SUFFIX)
|
|
|
|
all: $(GLOBAL_DEBUG)
|
|
@if [ -n "$(MAIN_GROUPS)" ]; then \
|
|
mkdir -p $(TARGET) && \
|
|
cp -at $(TARGET) -- $(addsuffix .directory,$(MAIN_GROUPS)); \
|
|
type -t git >&/dev/null && \
|
|
cd $(TARGET) && \
|
|
git add . && \
|
|
git commit -qam "requested $(SUFFIX) copied over"; \
|
|
cd - >&/dev/null; \
|
|
fi
|
|
|
|
debug:
|
|
@echo "** MAIN_GROUPS: $(MAIN_GROUPS)"
|