d6972a39bf
As too many things started duplicating between distros proper and (e.g. corresponding) LiveCDs, it became apparent that a class of entities which end up working for THE_USER (not a sysadmin, and not a developer, just a Linux user) is in need. So THE_KMODULES will power installed basesystem and live image, while THE_PACKAGES, THE_LISTS and THE_GROUPS will participate in building those.
29 lines
730 B
Makefile
29 lines
730 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 "$(THE_GROUPS)$(MAIN_GROUPS)" ]; then \
|
|
mkdir -p $(TARGET) && \
|
|
cp -at $(TARGET) -- \
|
|
$(addsuffix .directory,$(THE_GROUPS) $(MAIN_GROUPS)); \
|
|
if type -t git >&/dev/null && cd $(TARGET); then \
|
|
if [ -n "`git status -s`" ]; then \
|
|
git add . && \
|
|
git commit -qam "requested $(SUFFIX) copied over"; \
|
|
fi; \
|
|
cd - >&/dev/null; \
|
|
fi; \
|
|
fi
|
|
|
|
debug:
|
|
@echo "** THE_GROUPS: $(THE_GROUPS)"
|
|
@echo "** MAIN_GROUPS: $(MAIN_GROUPS)"
|