3a5b47e712
- better *_LISTS printout - somewhat cleaner .base comments - more comprehensible git log messages + special handling for complex subprofiles + no need to commit build.log ;-)
25 lines
577 B
Makefile
25 lines
577 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 "$(GROUPS)" ]; then \
|
|
mkdir -p $(TARGET) && \
|
|
cp -at $(TARGET) -- $(addsuffix .directory,$(GROUPS)); \
|
|
type -t git >&/dev/null && \
|
|
cd $(TARGET) && \
|
|
git add . && \
|
|
git commit -qam "requested $(SUFFIX) copied over"; \
|
|
cd - >&/dev/null; \
|
|
fi
|
|
|
|
debug:
|
|
@echo "** GROUPS: $(GROUPS)"
|