logic() { bt_target book } target_book() { SRCS="book.xml \ buildtool.xml \ bt_config.xml \ bt_dist.xml \ bt_doc.xml \ bt_lint.xml \ bt_logic.xml \ bt_pkgflags.xml \ bt_swcgen.xml \ bt_wizard.xml \ config.xml \ defs.xml \ devtut.xml \ docs.xml \ intro.xml \ logic.xml \ scripts.xml \ chapters.ent" XSL=../xsl/html-chunk.xsl MAIN_FILE="${BT_SRCDIR}/book.xml" BT_TARGET_FILE="index.html" BT_DEPENDS="${MAIN_FILE} ${SRCS}" #[ "$BT_STAGE" = "build" ] && BT_DEPENDS="$BT_DEPENDS $XSL" } target_book_build() { bt_exec ${BT_PROG_XSLTPROC} --nonet -o ${BT_TARGET_FILE} ${XSL} ${MAIN_FILE} } target_book_clean() { bt_remove *.html } target_book_deinstall() { local dir f eval dir=${BT_DIR_HTML} bt_exec rm -rf ${dir} rmdir -p $dir 2>/dev/null || true } target_book_install() { local dir f eval dir=${BT_DIR_HTML} bt_install_dir ${dir} for f in *.html ${BT_SRCDIR}/*.css; do bt_install_data $f ${dir}/${f##*/} done }