1# 2# $Id$ 3# 4# Copyright 2014, Juniper Networks, Inc. 5# All rights reserved. 6# This SOFTWARE is licensed under the LICENSE provided in the 7# ../Copyright file. By downloading, installing, copying, or otherwise 8# using the SOFTWARE, you agree to be bound by the terms of that 9# LICENSE. 10 11OXTRADOC_DIR = ${SLAX_OXTRADOCDIR} 12OXTRADOC_PREFIX = ${OXTRADOC_DIR} 13OXTRADOC = ${OXTRADOC_DIR}/oxtradoc 14SLAXPROC_BINDIR = ${SLAX_BINDIR} 15 16XML2RFC = ${OXTRADOC_DIR}/xml2rfc.tcl 17XML2HTMLDIR = ${OXTRADOC_DIR} 18XML2HTMLBIN = ${XML2HTMLDIR}/rfc2629-to-html.slax 19SLAXPROC = ${SLAX_BINDIR}/slaxproc 20 21SLAXPROC_ARGS = \ 22 -a oxtradoc-dir ${OXTRADOC_DIR} \ 23 -a oxtradoc-install-dir ${OXTRADOC_DIR} \ 24 -a anchor-prefix docs 25 26SLAXPROC_ARGS_INLINE = \ 27 -a oxtradoc-inline yes 28 29SLAXPROC_ARGS += ${SLAXPROC_ARGS_INLINE} 30 31XML2HTML = \ 32 ${SLAXPROC} -g -e -I ${OXTRADOC_DIR} -I . \ 33 ${SLAXPROC_ARGS} \ 34 ${XML2HTMLBIN} 35 36OX_ARGS = -P ${OXTRADOC_PREFIX} -L ${OXTRADOC_PREFIX} 37OX_ARGS += -S ${SLAXPROC} -p doc 38OX_CMD = ${PERL} ${PERLOPTS} ${OXTRADOC} ${OX_ARGS} 39OXTRADOC_CMD = ${OX_CMD} 40 41 42OUTPUT = libxo-manual 43INPUT = libxo.txt 44 45EXTRA_DIST = \ 46 ${INPUT} \ 47 ${OUTPUT}.html \ 48 ${OUTPUT}.txt 49 50doc docs: ${OUTPUT}.txt ${OUTPUT}.html 51 52${OUTPUT}.txt: ${INPUT} ${OXTRADOC} xolint.txt 53 ${OXTRADOC_CMD} -m text -o $@ $< 54 55${OUTPUT}.html: ${INPUT} ${OXTRADOC} ${XML2HTMLBIN} xolint.txt 56 ${OXTRADOC_CMD} -m html -o $@ $< 57 58xolint.txt: ${top_srcdir}/xolint/xolint.pl 59 perl ${top_srcdir}/xolint/xolint.pl -D > xolint.txt 60 61CLEANFILES = \ 62${OUTPUT}.xml \ 63${OUTPUT}.txt \ 64${OUTPUT}.fxml \ 65${OUTPUT}.html 66