forked from altcloud/mkimage-profiles
d77e1d8dc8
A major change in approach largely thanks to discussions with Alexey Cheusov but also well aligned with my own findings: autoconf doesn't let the variables to form an inheritance. And data flow described at http://www.altlinux.org/WhiteLabel (which in its turn was born thanks to Gavin Henrick of Diva Telecom and to Alexander Bokovoy of SaM-Solutions) is really dependent on the existence of such an inheritance. Also: - distro.mk += try() - "hide" special targets - fixed wrt distro/.{base,init,metaconf}, thx gns@ - README updates + added metaconf.mk + clarifications - updated pci.ids location for hdt
23 lines
566 B
Makefile
23 lines
566 B
Makefile
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
|
|
|
|
profile/populate: profile/init distro/.metaconf
|
|
@for dir in sub.in features.in pkg.in; do \
|
|
$(MAKE) -C $$dir; \
|
|
done
|
|
|