ace5cb0ff6
- more thorough build stages inline doc - quieter BUILDDIR instantiation - branding-altlinux-sisyphus by default - prettify installer selection somewhat - mkimage #24669 fixed upstream - sub.in/stage1/modules: +drm (as in m-p-d, for KMS) - tags2lists: generalize a bit
25 lines
667 B
Makefile
25 lines
667 B
Makefile
# step 1: initialize the off-tree mkimage profile
|
|
profile/init:
|
|
@echo "** BUILDDIR: $(BUILDDIR)"
|
|
@rsync -qaH --delete image.in/ "$(BUILDDIR)"/
|
|
@:> "$(BUILDDIR)"/.config.mk
|
|
@mkdir "$(BUILDDIR)"/.mki # mkimage toplevel marker
|
|
@type -t git >&/dev/null && \
|
|
cd $(BUILDDIR) && \
|
|
git init -q && \
|
|
git add . && \
|
|
git commit -qam 'init'
|
|
@rm -f build
|
|
@if [ -w . ]; then \
|
|
ln -sf "$(BUILDDIR)" build; \
|
|
else \
|
|
echo "** profile directory readonly: skipping symlinks, env only"; \
|
|
fi
|
|
|
|
# this is done after step 2, see toplevel Makefile
|
|
profile/populate: profile/init distro/.metaconf
|
|
@for dir in sub.in features.in pkg.in; do \
|
|
$(MAKE) -C $$dir; \
|
|
done
|
|
|