2010-08-28 20:28:42 +04:00
i n c l u d e f u n c t i o n s . m k
2010-10-29 13:11:03 +04:00
i n c l u d e $( GLOBAL_BUILDDIR ) / f u n c t i o n s . m k
2010-08-28 20:28:42 +04:00
i n c l u d e $( GLOBAL_BUILDDIR ) / . c o n f i g . m k
2010-09-27 23:02:57 +04:00
i n c l u d e $( MKIMAGE_PREFIX ) / c o n f i g . m k
2010-08-28 20:28:42 +04:00
SUBDIRS = $( SUBPROFILES)
2010-09-09 13:50:29 +04:00
# "main" subprofile needs genbasedir
CHROOT_PACKAGES = apt-utils
2010-08-28 20:28:42 +04:00
###
2010-09-09 13:50:29 +04:00
MKI_PACK_RESULTS = isoboot:mkimage-profiles.iso
COPY_TREE = ./files
2010-08-28 20:28:42 +04:00
BOOT_TYPE = isolinux
2010-09-27 23:02:57 +04:00
i f e q "$(wildcard $(APTCONF))" ""
GLOBAL_HSH_APT_CONFIG = /etc/apt/apt.conf
e l s e
GLOBAL_HSH_APT_CONFIG = $( APTCONF)
e n d i f
2010-09-08 16:47:06 +04:00
i n c l u d e $( MKIMAGE_PREFIX ) / t a r g e t s . m k
2010-08-28 20:28:42 +04:00
2010-09-14 14:18:53 +04:00
all : prep copy -subdirs copy -tree run -scripts pack -image
2010-08-28 20:28:42 +04:00
2010-09-09 13:50:29 +04:00
# FIXME: scripts.d/?
2010-09-27 23:02:57 +04:00
prep : debug disk -info metadata
debug :
2010-08-28 20:28:42 +04:00
@echo " TOPDIR= $( TOPDIR) "
2010-09-27 23:02:57 +04:00
@echo " ARCH= $( ARCH) "
@echo " GLOBAL_HSH_APT_CONFIG= $( GLOBAL_HSH_APT_CONFIG) "
2010-08-28 20:28:42 +04:00
disk-info :
2010-09-14 14:18:53 +04:00
@mkdir -p files/.disk
@echo "FIXME" >files/.disk/info ### +$(ARCH)
2010-09-18 18:46:32 +04:00
@type -t git >& /dev/null && ( \
cd $( TOPDIR) && \
git show-ref --head --dereference -s -- HEAD 2>/dev/null; \
) >files/.disk/commit
2010-08-28 20:28:42 +04:00
# see also alterator-pkg (backend3/pkg-install)
2010-09-16 14:01:32 +04:00
# FIXME: if we copy --as-needed, maybe just tar . ?
2010-08-28 20:28:42 +04:00
metadata :
2010-09-14 14:18:53 +04:00
@mkdir -p files/Metadata
@rm -f files/Metadata/pkg-groups.tar
2010-10-29 13:11:03 +04:00
# FIXME: KERNEL_PACKAGES deprecated, this is broken now! -- or not?..
@echo "DEBUG: image.in/Makefile" >& 2
@echo -e " \n# auto-added in image.in/Makefile\n $( call kpackages) " >> $( call list,.base)
2010-09-16 14:01:32 +04:00
tar -cvf files/Metadata/pkg-groups.tar \
2010-08-28 20:28:42 +04:00
-C $( PKGDIR) \
2010-09-16 14:01:32 +04:00
$$ ( echo $( call list,.base) $( call list,$( GROUPS) ) $( call group,$( GROUPS) ) | sed 's,$(PKGDIR)/*,,g' )
2010-08-28 20:28:42 +04:00