# -*-makefile-*- # # Copyright (C) 2018 Florian Bäuerle # # See CREDITS for details about who has contributed to this project. # # For further information about the PTXdist project and license conditions # see the README file. # world/install-fonts = \ DIR=$($(strip $(1)_DIR)); \ PKGDIR=$($(strip $(1)_PKGDIR)); \ PKGFONTDIR=$${PKGDIR}$($(strip $(1)_FONTDIR)); \ FILTER=$(strip $(2)); \ rm -rf $($(1)_PKGDIR) && \ mkdir -p $${PKGFONTDIR} && \ find $${DIR} -name "$${FILTER}" | \ while read file; do \ install -m 644 $${file} $${PKGFONTDIR} && \ if [ "$(PTXCONF_XORG_FONTS_QT4_LINKS)" = "y" ]; then \ name=$$(basename $${file}) && \ mkdir -p $${PKGDIR}/usr/lib/fonts && \ ln -s ../../..$($(strip $(1)_FONTDIR))/$${name} \ $${PKGDIR}/usr/lib/fonts/$${name} || break; \ fi; \ done && \ mkfontdir $${PKGFONTDIR} && \ mkfontscale $${PKGFONTDIR} # vim: syntax=make