2010-08-28 19:28:42 +03:00
i n c l u d e g l o b a l s . m k
i n c l u d e f u n c t i o n s . m k
i n c l u d e $( MKIMAGE_PREFIX ) / c o n f i g . m k
i n c l u d e $( GLOBAL_BUILDDIR ) / . c o n f i g . m k
SUBDIRS = $( SUBPROFILES)
2010-09-09 12:50:29 +03:00
# "main" subprofile needs genbasedir
CHROOT_PACKAGES = apt-utils
2010-08-28 19:28:42 +03:00
###
2010-09-09 12:50:29 +03:00
MKI_PACK_RESULTS = isoboot:mkimage-profiles.iso
COPY_TREE = ./files
2010-08-28 19:28:42 +03:00
BOOT_TYPE = isolinux
2010-09-08 15:47:06 +03:00
i n c l u d e $( MKIMAGE_PREFIX ) / t a r g e t s . m k
2010-08-28 19:28:42 +03:00
2010-09-14 13:18:53 +03:00
all : prep copy -subdirs copy -tree run -scripts pack -image
2010-08-28 19:28:42 +03:00
2010-09-09 12:50:29 +03:00
# FIXME: scripts.d/?
prep : disk -info metadata
2010-08-28 19:28:42 +03:00
@echo " TOPDIR= $( TOPDIR) "
disk-info :
2010-09-14 13:18:53 +03:00
@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
2010-08-28 19:28:42 +03:00
# see also alterator-pkg (backend3/pkg-install)
2010-09-16 13:01:32 +03:00
# FIXME: if we copy --as-needed, maybe just tar . ?
2010-08-28 19:28:42 +03:00
metadata :
2010-09-14 13:18:53 +03:00
@mkdir -p files/Metadata
@rm -f files/Metadata/pkg-groups.tar
2010-09-16 13:01:32 +03:00
tar -cvf files/Metadata/pkg-groups.tar \
2010-08-28 19:28:42 +03:00
-C $( PKGDIR) \
2010-09-16 13:01:32 +03:00
$$ ( echo $( call list,.base) $( call list,$( GROUPS) ) $( call group,$( GROUPS) ) | sed 's,$(PKGDIR)/*,,g' )
2010-08-28 19:28:42 +03:00