9a8f8ef7cd
- set(), add(), log() + special thanks to rider@ for log format feedback - simple debug facility - builds, installs and runs... again
38 lines
987 B
Makefile
38 lines
987 B
Makefile
include globals.mk
|
|
include functions.mk
|
|
include $(MKIMAGE_PREFIX)/config.mk
|
|
include $(GLOBAL_BUILDDIR)/.config.mk
|
|
|
|
SUBDIRS = $(SUBPROFILES)
|
|
|
|
# "main" subprofile needs genbasedir
|
|
CHROOT_PACKAGES = apt-utils
|
|
###
|
|
MKI_PACK_RESULTS = isoboot:mkimage-profiles.iso
|
|
COPY_TREE = ./files
|
|
BOOT_TYPE = isolinux
|
|
|
|
include $(MKIMAGE_PREFIX)/targets.mk
|
|
|
|
all: prep copy-tree copy-subdirs run-scripts pack-image
|
|
|
|
# FIXME: scripts.d/?
|
|
prep: disk-info metadata
|
|
@echo "TOPDIR=$(TOPDIR)"
|
|
|
|
disk-info:
|
|
mkdir -p files/.disk
|
|
echo "FIXME" >files/.disk/info ### +$(ARCH)
|
|
(cd $(TOPDIR); git show-ref --head --dereference -s -- HEAD 2>/dev/null) >files/.disk/commit
|
|
[ -s files/.disk/commit ] || rm files/.disk/commit
|
|
|
|
# see also alterator-pkg (backend3/pkg-install)
|
|
# FIXME: groups unmerged, and only .base hardwired in
|
|
metadata:
|
|
mkdir -p files/Metadata
|
|
rm -f files/Metadata/pkg-groups.tar
|
|
tar -cvf files/Metadata/pkg-groups.tar \
|
|
-C $(PKGDIR) \
|
|
$(shell echo $(call list,.base) | sed 's,$(PKGDIR)/*,,g')
|
|
|